mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-13 09:26:11 -04:00
fix biome reading crash
This commit is contained in:
parent
9f253a386a
commit
f61a1a8e93
@ -70,7 +70,7 @@ data class Biome(
|
||||
fogColor = fogColor,
|
||||
waterColor = waterColor,
|
||||
waterFogColor = waterFogColor,
|
||||
precipitation = data["precipitation"]?.let { if (it is Int) BiomePrecipitation.getOrNull(it - 1) else BiomePrecipitation[it] },
|
||||
precipitation = data["precipitation"]?.let { if (it is Int) BiomePrecipitation.getOrNull(it - 1) else if (it.toString().lowercase() == "none") null else BiomePrecipitation[it] },
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user