Save some RAM.

Vanilla only needs 12k~ states right now, 32k is unnecessary.
This commit is contained in:
wizjany 2019-06-15 20:24:47 -04:00
parent 0aa0dbfd11
commit 61fd44fa8c

View File

@ -51,7 +51,7 @@ public final class BlockStateIdAccess {
return id < blockStates.length ? blockStates[id] : null;
}
private static BlockState[] blockStates = new BlockState[2 << 14];
private static BlockState[] blockStates = new BlockState[2 << 13];
public static void register(BlockState blockState) {
OptionalInt id = getBlockStateId(blockState);