mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 11:24:56 -04:00
cloud renderer: fix error when dimension not capable of clouds
This commit is contained in:
parent
0448ce90d4
commit
18316bfa0b
@ -112,6 +112,9 @@ class CloudsRenderer(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun prepareDrawAsync() {
|
override fun prepareDrawAsync() {
|
||||||
|
if (!sky.effects.clouds) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (layers.size != nextLayers) {
|
if (layers.size != nextLayers) {
|
||||||
updateLayers(nextLayers)
|
updateLayers(nextLayers)
|
||||||
}
|
}
|
||||||
@ -124,6 +127,9 @@ class CloudsRenderer(
|
|||||||
for (unload in toUnload) {
|
for (unload in toUnload) {
|
||||||
unload.unload()
|
unload.unload()
|
||||||
}
|
}
|
||||||
|
if (!sky.effects.clouds) {
|
||||||
|
return
|
||||||
|
}
|
||||||
for (layer in layers) {
|
for (layer in layers) {
|
||||||
layer.prepare()
|
layer.prepare()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user