From fd70627970aa81c5c9231f2d40e7ea549b99c643 Mon Sep 17 00:00:00 2001 From: Sensei Date: Sun, 26 Dec 2021 01:34:11 +0000 Subject: [PATCH] WORTH IT --- .../java/chunkdebug/feature/ChunkServerNetworkHandler.java | 2 +- src/main/java/chunkdebug/utils/ChunkMapSerializer.java | 3 ++- src/main/resources/fabric.mod.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/chunkdebug/feature/ChunkServerNetworkHandler.java b/src/main/java/chunkdebug/feature/ChunkServerNetworkHandler.java index e48fd0c..ccabdd6 100644 --- a/src/main/java/chunkdebug/feature/ChunkServerNetworkHandler.java +++ b/src/main/java/chunkdebug/feature/ChunkServerNetworkHandler.java @@ -64,7 +64,7 @@ public void addWorld(ServerWorld world) { this.updatesInLastTick.put(world, new HashSet<>()); } - public void updateChunkMap(ServerWorld world, ChunkData chunkData) { + public synchronized void updateChunkMap(ServerWorld world, ChunkData chunkData) { Set chunkDataSet = this.serverWorldChunks.get(world); Set tickChunkDataSet = this.updatesInLastTick.get(world); chunkDataSet.remove(chunkData); diff --git a/src/main/java/chunkdebug/utils/ChunkMapSerializer.java b/src/main/java/chunkdebug/utils/ChunkMapSerializer.java index 3bcccfb..e924765 100644 --- a/src/main/java/chunkdebug/utils/ChunkMapSerializer.java +++ b/src/main/java/chunkdebug/utils/ChunkMapSerializer.java @@ -37,7 +37,8 @@ public static int getTicketCode(ChunkTicketType chunkTicketType) { case "light" -> 5; case "portal" -> 6; case "post_teleport" -> 7; - case "unknown" -> 8; + case "chonk" -> 8; + case "unknown" -> 9; }; } } \ No newline at end of file diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 1e3a1e6..407d3ca 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -22,7 +22,7 @@ "mixins": [ "chunkdebug.mixins.json" ], - + "accessWidener" : "chunkdebug.accesswidener", "depends": { "minecraft": "1.16.x", "fabricloader": ">=0.10.0"