|
@@ -16,13 +16,12 @@ public enum MaterialEnum {
|
|
|
private MaterialEnum(Integer type, Integer width, Integer height) {
|
|
|
this.type = type;
|
|
|
this.width = width;
|
|
|
- this.width = width;
|
|
|
this.height = height;
|
|
|
}
|
|
|
|
|
|
public static Integer getTypeBySize(Integer width, Integer height) {
|
|
|
for (MaterialEnum material : MaterialEnum.values()) {
|
|
|
- if (width == material.width && height == material.height) {
|
|
|
+ if (width == material.getWidth() && height == material.getHeight()) {
|
|
|
return material.type;
|
|
|
}
|
|
|
}
|