Fix some issues with java 9 / reflection

This commit is contained in:
Jesse Boyd
2018-08-16 19:56:31 +10:00
parent 8de1fff263
commit 2172ebba83
12 changed files with 357 additions and 170 deletions

View File

@ -13,7 +13,7 @@ public class SolidBlockMask extends BlockTypeMask {
public static boolean[] getTypes() {
boolean[] types = new boolean[BlockTypes.size()];
for (BlockTypes type : BlockTypes.values) {
types[type.ordinal()] = type.getMaterial().isSolid();
types[type.getInternalId()] = type.getMaterial().isSolid();
}
return types;
}