From 61fd44fa8ca40ef9ff54ff3e4d5882d2e668a485 Mon Sep 17 00:00:00 2001 From: wizjany Date: Sat, 15 Jun 2019 20:24:47 -0400 Subject: [PATCH] Save some RAM. Vanilla only needs 12k~ states right now, 32k is unnecessary. --- .../com/sk89q/worldedit/internal/block/BlockStateIdAccess.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/block/BlockStateIdAccess.java b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/block/BlockStateIdAccess.java index 52af247c9..9b02fab98 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/block/BlockStateIdAccess.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/block/BlockStateIdAccess.java @@ -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);