From 7b4a3ce5d8d81f0c22e824461a740f37b5a1e6b8 Mon Sep 17 00:00:00 2001 From: Kory <6561358+kory33@users.noreply.github.com> Date: Wed, 29 Sep 2021 19:25:11 +0900 Subject: [PATCH] [fix] pass nmsWorldServer to World.getChunkAtCoordinate method --- .../unchama/util/nms/v1_12_2/world/WorldChunkSaving.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/github/unchama/util/nms/v1_12_2/world/WorldChunkSaving.scala b/src/main/scala/com/github/unchama/util/nms/v1_12_2/world/WorldChunkSaving.scala index 898648c509..4e4625a1ef 100644 --- a/src/main/scala/com/github/unchama/util/nms/v1_12_2/world/WorldChunkSaving.scala +++ b/src/main/scala/com/github/unchama/util/nms/v1_12_2/world/WorldChunkSaving.scala @@ -159,7 +159,7 @@ object WorldChunkSaving { val entityChunkZ = Entity.chunkZ(entity) if (Entity.loadedToAChunk(entity) && World.isChunkLoaded(nmsWorldServer)(entityChunkX, entityChunkZ)) { - val chunk = World.getChunkAtCoordinate(world)(entityChunkX, entityChunkZ) + val chunk = World.getChunkAtCoordinate(nmsWorldServer)(entityChunkX, entityChunkZ) Chunk.untrackEntity(chunk)(entity) }