mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-14 09:56:37 -04:00
fix world preparing NullPointerException
This commit is contained in:
parent
d0f063bfec
commit
6f74c7cfd0
@ -75,9 +75,10 @@ class WorldRenderer(
|
||||
}
|
||||
|
||||
|
||||
val biome = world.getBiome(blockPosition)!!
|
||||
val biome = world.getBiome(blockPosition)
|
||||
|
||||
val tintColor: RGBColor? = when {
|
||||
biome == null -> null
|
||||
StaticConfiguration.BIOME_DEBUG_MODE -> RGBColor(biome.hashCode())
|
||||
blockInfo.tintColor != null -> blockInfo.tintColor
|
||||
blockInfo.owner.tint != null -> renderWindow.tintColorCalculator.calculateTint(blockInfo.owner.tint, biome, blockPosition)
|
||||
|
Loading…
x
Reference in New Issue
Block a user