mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-15 02:15:34 -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 {
|
val tintColor: RGBColor? = when {
|
||||||
|
biome == null -> null
|
||||||
StaticConfiguration.BIOME_DEBUG_MODE -> RGBColor(biome.hashCode())
|
StaticConfiguration.BIOME_DEBUG_MODE -> RGBColor(biome.hashCode())
|
||||||
blockInfo.tintColor != null -> blockInfo.tintColor
|
blockInfo.tintColor != null -> blockInfo.tintColor
|
||||||
blockInfo.owner.tint != null -> renderWindow.tintColorCalculator.calculateTint(blockInfo.owner.tint, biome, blockPosition)
|
blockInfo.owner.tint != null -> renderWindow.tintColorCalculator.calculateTint(blockInfo.owner.tint, biome, blockPosition)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user