Skip to content

Commit

Permalink
fix performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
J3fftw1 committed Mar 29, 2024
1 parent d036525 commit 8114960
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private void loadBlockStorage() {
for (Map.Entry<Location, Config> 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();
Expand Down

0 comments on commit 8114960

Please sign in to comment.