mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-19 12:25:12 -04:00
fix bad visibility graph
This commit is contained in:
parent
e47e60191d
commit
1d89404d20
@ -218,7 +218,7 @@ class WorldVisibilityGraph(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun VisibilityGraph.checkSection(chunkPosition: Vec2i, sectionIndex: Int, chunk: Chunk, visibilities: BooleanArray, direction: Directions, directionX: Int, directionY: Int, directionZ: Int, ignoreVisibility: Boolean) {
|
private fun VisibilityGraph.checkSection(chunkPosition: Vec2i, sectionIndex: Int, chunk: Chunk, visibilities: BooleanArray, direction: Directions, directionX: Int, directionY: Int, directionZ: Int, ignoreVisibility: Boolean) {
|
||||||
if ((direction == Directions.UP && sectionIndex >= maxIndex) || (direction == Directions.DOWN && sectionIndex <= 0)) {
|
if ((direction == Directions.UP && sectionIndex >= maxIndex) || (direction == Directions.DOWN && sectionIndex < 0)) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!isInViewDistance(chunkPosition)) {
|
if (!isInViewDistance(chunkPosition)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user