mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-08 14:59:16 -04:00
chunk neighbours: fix tracing in west direction
This commit is contained in:
parent
50dfd17444
commit
d45c80e062
@ -100,8 +100,8 @@ class ChunkNeighbours(val chunk: Chunk) {
|
||||
offset.z < 0 -> neighbours[Directions.NORTH]?.neighbours?.traceChunk(offset.plusZ())
|
||||
offset.z > 0 -> neighbours[Directions.SOUTH]?.neighbours?.traceChunk(offset.minusZ())
|
||||
offset.x < 0 -> neighbours[Directions.WEST]?.neighbours?.traceChunk(offset.plusX())
|
||||
offset.x > 0 -> neighbours[Directions.WEST]?.neighbours?.traceChunk(offset.minusX())
|
||||
else -> Broken()
|
||||
offset.x > 0 -> neighbours[Directions.EAST]?.neighbours?.traceChunk(offset.minusX())
|
||||
else -> Broken("Invalid chunk offset: $offset")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user