From 98c8da32b52aa6e011fff7dcb079661210142bb7 Mon Sep 17 00:00:00 2001 From: Username404 Date: Fri, 25 Jun 2021 22:55:56 +0200 Subject: [PATCH] Make components abstract in SnowyScreen.kt --- .../src/main/kotlin/fr/username404/snowygui/gui/SnowyScreen.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 by Delegates.notNull() + abstract val components: MutableSet override fun render(poseStack: PoseStack?, i: Int, j: Int, f: Float) { if (poseStack != null) { components.forEach {