mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-12 08:58:02 -04:00
fog: fix null pointer if dimension has no fog
Minosoft would instantly crash when you go into the end, because the end has no fog but it sill tries to get the fog options.
This commit is contained in:
parent
e7b57e4da3
commit
ff92b1f0db
@ -68,7 +68,8 @@ class FogManager(
|
||||
if (state.enabled != enabled) {
|
||||
state.revision++
|
||||
}
|
||||
if (!state.enabled) return
|
||||
state.enabled = enabled
|
||||
if (!enabled) return
|
||||
|
||||
val options = getOptions(effects!!)
|
||||
if (this.options == options) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user