From 8114960f4c2c0ae90158e771097b12decf160d87 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Fri, 29 Mar 2024 10:31:01 +0100 Subject: [PATCH] fix performance issue --- .../java/dev/j3fftw/headlimiter/blocklimiter/BlockLimiter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/j3fftw/headlimiter/blocklimiter/BlockLimiter.java b/src/main/java/dev/j3fftw/headlimiter/blocklimiter/BlockLimiter.java index 09b5c96..583edb3 100644 --- a/src/main/java/dev/j3fftw/headlimiter/blocklimiter/BlockLimiter.java +++ b/src/main/java/dev/j3fftw/headlimiter/blocklimiter/BlockLimiter.java @@ -45,7 +45,7 @@ private void loadBlockStorage() { for (Map.Entry entry : worldStorage.getRawStorage().entrySet()) { Location location = entry.getKey(); String id = entry.getValue().getString("id"); - ChunkPosition chunkPosition = new ChunkPosition(location.getChunk()); + ChunkPosition chunkPosition = new ChunkPosition(world, location.getBlockX(), location.getBlockZ()); ChunkContent content = contentMap.get(chunkPosition); if (content == null) { content = new ChunkContent();