diff --git a/fabric/src/main/kotlin/fr/username404/snowygui/fabric/ModMenuConf.kt b/fabric/src/main/kotlin/fr/username404/snowygui/fabric/ModMenuConf.kt index 9153d8b..51887f8 100644 --- a/fabric/src/main/kotlin/fr/username404/snowygui/fabric/ModMenuConf.kt +++ b/fabric/src/main/kotlin/fr/username404/snowygui/fabric/ModMenuConf.kt @@ -7,10 +7,8 @@ import fr.username404.snowygui.config.configScreenParent import net.minecraft.client.gui.screens.Screen class ModMenuConf: ModMenuApi { - override fun getModConfigScreenFactory(): ConfigScreenFactory { - return ConfigScreenFactory { screen: Screen? -> - configScreenParent = screen!! - SnowyConfigScreen - } + override fun getModConfigScreenFactory() = ConfigScreenFactory { screen: Screen -> + configScreenParent = screen + SnowyConfigScreen } } \ No newline at end of file