Assume that the modmenu screen is not null in ModMenuConf.kt
This commit is contained in:
parent
3c37ffcb81
commit
e618407a94
|
@ -7,10 +7,8 @@ import fr.username404.snowygui.config.configScreenParent
|
||||||
import net.minecraft.client.gui.screens.Screen
|
import net.minecraft.client.gui.screens.Screen
|
||||||
|
|
||||||
class ModMenuConf: ModMenuApi {
|
class ModMenuConf: ModMenuApi {
|
||||||
override fun getModConfigScreenFactory(): ConfigScreenFactory<Screen> {
|
override fun getModConfigScreenFactory() = ConfigScreenFactory { screen: Screen ->
|
||||||
return ConfigScreenFactory<Screen> { screen: Screen? ->
|
configScreenParent = screen
|
||||||
configScreenParent = screen!!
|
SnowyConfigScreen
|
||||||
SnowyConfigScreen
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue