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) }