diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/SnowyScreen.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/SnowyScreen.kt index 923724d..cb5d849 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/SnowyScreen.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/SnowyScreen.kt @@ -3,10 +3,9 @@ package fr.username404.snowygui.gui import com.mojang.blaze3d.vertex.PoseStack import net.minecraft.client.gui.screens.Screen import net.minecraft.network.chat.TranslatableComponent -import kotlin.properties.Delegates abstract class SnowyScreen(translatableString: String = "screen.snowy.gui", private val willPauseScreen: Boolean = false): Screen(TranslatableComponent(translatableString)) { - open val components: MutableSet<Element> by Delegates.notNull() + abstract val components: MutableSet<Element> override fun render(poseStack: PoseStack?, i: Int, j: Int, f: Float) { if (poseStack != null) { components.forEach {