Fix some adapter issues

regen 1.13, tile get npe, null block type values
This commit is contained in:
Jesse Boyd
2019-12-21 09:45:59 +00:00
parent 4a4f5bcc74
commit 39faa740a2
10 changed files with 69 additions and 80 deletions

View File

@ -218,6 +218,9 @@ public class BlockTypesCache {
values[internalId] = type;
}
}
for (int i = 0; i < values.length; i++) {
if (values[i] == null) values[i] = values[0];
}
states = stateList.toArray(new BlockState[stateList.size()]);