Remove the now useless ButtonInfo.color value
This commit is contained in:
parent
f43f5569b2
commit
a8c4bf4709
|
@ -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
|
||||
|
|
|
@ -2,10 +2,10 @@ 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
|
||||
|
|
Loading…
Reference in New Issue