From 3d65eb2c9088666cdaa9bb578bed2ecd71c6dfa6 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Wed, 5 May 2021 11:18:32 +0200 Subject: [PATCH] Add NoGravity --- .../main/kotlin/fr/username404/snowygui/misc/addComponents.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt b/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt index 338af9f..2513af5 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt @@ -21,7 +21,8 @@ object Storage { } ), newBox("snowy.clickbox.risky", color = 0x660000).addButtons( - "NoHurtCamera" to { hurtCamera = !hurtCamera } + "NoHurtCamera" to { hurtCamera = !hurtCamera }, + "NoGravity" to { Minecraft.getInstance().player?.let { it.isNoGravity = !it.isNoGravity } } ), ) }