fix wrong entity chunk position

This commit is contained in:
Moritz Zwerger 2025-03-07 21:52:42 +01:00
parent 1576fcdcb3
commit 6f8eca6a30
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -48,7 +48,7 @@ class EntityPositionInfo(
// chunk position invalid; this should really not happen because the physics position is clamped at that
throw IllegalStateException("Invalid physics position: $position")
}
val chunkPosition = BlockPosition(position.x.floor, 0, position.y.floor).chunkPosition
val chunkPosition = BlockPosition(position.x.floor, 0, position.z.floor).chunkPosition
world.lock.acquire()
val revision = world.chunks.revision