Small cleanups

This commit is contained in:
SiboVG 2023-03-21 23:46:28 +01:00
parent 2c22015ec7
commit acc20ee772
3 changed files with 19 additions and 20 deletions

View File

@ -20,8 +20,7 @@ public enum MaterialTypeDTO {
public static MaterialTypeDTO asDTO(Material.Type targetType) {
MaterialTypeDTO[] values = values();
for (int i = 0; i < values.length; i++) {
MaterialTypeDTO value = values[i];
for (MaterialTypeDTO value : values) {
if (value.corollary.equals(targetType)) {
return value;
}