mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-15 10:25:06 -04:00
fix wrong entity chunk position
This commit is contained in:
parent
1576fcdcb3
commit
6f8eca6a30
@ -48,7 +48,7 @@ class EntityPositionInfo(
|
|||||||
// chunk position invalid; this should really not happen because the physics position is clamped at that
|
// chunk position invalid; this should really not happen because the physics position is clamped at that
|
||||||
throw IllegalStateException("Invalid physics position: $position")
|
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()
|
world.lock.acquire()
|
||||||
val revision = world.chunks.revision
|
val revision = world.chunks.revision
|
||||||
|
Loading…
x
Reference in New Issue
Block a user