diff --git a/src/main/java/net/minestom/server/instance/block/BlockManager.java b/src/main/java/net/minestom/server/instance/block/BlockManager.java index 7e6c74062..118bee34a 100644 --- a/src/main/java/net/minestom/server/instance/block/BlockManager.java +++ b/src/main/java/net/minestom/server/instance/block/BlockManager.java @@ -20,8 +20,6 @@ public class BlockManager { // Namespace -> handler supplier private final Map> blockHandlerMap = new ConcurrentHashMap<>(); - private final Map statelessCache = new ConcurrentHashMap<>(); - // block id -> block placement rule private final Int2ObjectMap placementRuleMap = new Int2ObjectOpenHashMap<>(); @@ -29,11 +27,6 @@ public class BlockManager { blockHandlerMap.put(namespace, handlerSupplier); } - public void registerStatelessHandler(@NotNull String namespace, @NotNull BlockHandler handler) { - statelessCache.put(namespace, handler); - registerHandler(namespace, () -> statelessCache.get(namespace)); - } - public @Nullable BlockHandler getHandler(@NotNull String namespace) { final var handler = blockHandlerMap.get(namespace); return handler != null ? handler.get() : null;