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:
Moritz Zwerger 2024-04-23 17:37:48 +02:00
parent e7b57e4da3
commit ff92b1f0db
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -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) {