Skip to content

Commit

Permalink
[fix] pass nmsWorldServer to World.getChunkAtCoordinate method
Browse files Browse the repository at this point in the history
  • Loading branch information
kory33 committed Sep 29, 2021
1 parent f2742c1 commit 7b4a3ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 7b4a3ce

Please sign in to comment.