Add a riskyCheats boolean
This commit is contained in:
parent
f7215b4202
commit
14b3d63b57
|
@ -46,6 +46,8 @@ sealed class ButtonImpl: ColoredElement(0.0, 0.0, 73, 8, opacity = 0.60F) {
|
|||
} catch (e: NoSuchMethodException) {
|
||||
it.getDeclaredField("INSTANCE").get(null)
|
||||
}) as ButtonImpl)
|
||||
}.filterNot {
|
||||
(it.info.parent == Category.RISKY) && !riskyCheats
|
||||
}.plus(Configuration.macros)
|
||||
)
|
||||
}
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
package fr.username404.snowygui.gui.feature
|
||||
|
||||
import fr.username404.snowygui.config.Configuration
|
||||
import net.minecraft.client.Minecraft
|
||||
import io.github.config4k.getValue
|
||||
|
||||
val riskyCheats: Boolean by Configuration.obtained
|
||||
|
||||
@ButtonInfo(Category.RISKY)
|
||||
object NoHurtCamera: ButtonImpl()
|
||||
|
|
Loading…
Reference in New Issue