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
|
||||
|
||||
class ModMenuConf: ModMenuApi {
|
||||
override fun getModConfigScreenFactory(): ConfigScreenFactory<Screen> {
|
||||
return ConfigScreenFactory<Screen> { screen: Screen? ->
|
||||
configScreenParent = screen!!
|
||||
override fun getModConfigScreenFactory() = ConfigScreenFactory { screen: Screen ->
|
||||
configScreenParent = screen
|
||||
SnowyConfigScreen
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue