mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-19 12:25:12 -04:00
fix crash when trying to place block above dimensions max height
This commit is contained in:
parent
38e5f54319
commit
68a74b0fb3
@ -174,7 +174,7 @@ class Chunk(
|
||||
private fun getOrPut(sectionHeight: Int): ChunkSection? {
|
||||
val sections = sections ?: return null
|
||||
val sectionIndex = sectionHeight - lowestSection
|
||||
if (sectionIndex < 0 || sectionIndex > sections.size) {
|
||||
if (sectionIndex < 0 || sectionIndex >= sections.size) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user