chunk neighbours: fix tracing in west direction

This commit is contained in:
Moritz Zwerger 2025-03-07 15:42:42 +01:00
parent 50dfd17444
commit d45c80e062
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

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