mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-12 00:47:26 -04:00
fix crash on worlds with minHeight < 0
This commit is contained in:
parent
bb607fc6aa
commit
34ba1330e2
@ -192,7 +192,7 @@ class ChunkLight(private val chunk: Chunk) {
|
||||
|
||||
var y = minY
|
||||
|
||||
sectionLoop@ for (sectionIndex in (startY.sectionHeight - chunk.lowestSection) downTo chunk.lowestSection * ProtocolDefinition.SECTION_HEIGHT_Y) {
|
||||
sectionLoop@ for (sectionIndex in (startY.sectionHeight - chunk.lowestSection) downTo 0) {
|
||||
if (sectionIndex >= sections.size) {
|
||||
// starting from above world
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user