From a8c4bf47096a9e7b2202496887570db9dda02e14 Mon Sep 17 00:00:00 2001 From: Username404 Date: Sat, 15 May 2021 00:49:37 +0200 Subject: [PATCH] Remove the now useless ButtonInfo.color value --- .../fr/username404/snowygui/gui/feature/ButtonInfo.kt | 5 ++--- .../fr/username404/snowygui/gui/feature/RiskyCheats.kt | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonInfo.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonInfo.kt index ece7029..8578039 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonInfo.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonInfo.kt @@ -8,8 +8,7 @@ import net.minecraft.network.chat.TranslatableComponent @Retention(AnnotationRetention.RUNTIME) annotation class ButtonInfo( val parent: Category, - val kind: Type = Type.TOGGLE, - val color: Colors = Colors.BLUE + val kind: Type = Type.TOGGLE ) { companion object { internal var lightningFactor: Float = 0.33F @@ -22,4 +21,4 @@ annotation class ButtonInfo( MISC("snowy.clickbox.misc", Colors.BLUE), RISKY("snowy.clickbox.risky", Colors.RED); init { ClickGui.components.add(ClickBox(y = 0.0, name = TranslatableComponent(translationKey))) } -} \ No newline at end of file +} diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/RiskyCheats.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/RiskyCheats.kt index 4327900..03d61eb 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/RiskyCheats.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/RiskyCheats.kt @@ -2,12 +2,12 @@ package fr.username404.snowygui.gui.feature import net.minecraft.client.Minecraft -@ButtonInfo(Category.RISKY, color = Colors.RED) +@ButtonInfo(Category.RISKY) object NoHurtCamera: ButtonImpl() -@ButtonInfo(Category.RISKY, color = Colors.RED) +@ButtonInfo(Category.RISKY) object NoGravity: ButtonImpl() { override fun execAction() { Minecraft.getInstance().player?.isNoGravity = this.toggled } -} \ No newline at end of file +}