aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-10-05 18:39:05 +1000
committerGitHub <noreply@github.com>2024-10-05 10:39:05 +0200
commite83d5b432a54d53253bcf6f2828fb41767ad17e1 (patch)
tree3a4b2847793f8ecf653e66535bc27345bc534e8b
parent524df8b718cad70c7a7fc02e323721c85385d41b (diff)
downloadskyhanni-e83d5b432a54d53253bcf6f2828fb41767ad17e1.tar.gz
skyhanni-e83d5b432a54d53253bcf6f2828fb41767ad17e1.tar.bz2
skyhanni-e83d5b432a54d53253bcf6f2828fb41767ad17e1.zip
Fix: Made it so you can shift click to disable features like it says (#2650)
-rw-r--r--src/main/java/at/hannibal2/skyhanni/mixins/transformers/gui/MixinGuiScreen.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/gui/MixinGuiScreen.java b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/gui/MixinGuiScreen.java
index b3338acf5..3f0371f07 100644
--- a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/gui/MixinGuiScreen.java
+++ b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/gui/MixinGuiScreen.java
@@ -8,6 +8,7 @@ import net.minecraft.item.ItemStack;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
+import org.spongepowered.asm.mixin.injection.Redirect;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
@@ -33,4 +34,9 @@ public class MixinGuiScreen {
public void handleKeyboardInput(CallbackInfo ci) {
TextInput.Companion.onGuiInput(ci);
}
+
+ @Redirect(method = "handleComponentClick", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/GuiScreen;isShiftKeyDown()Z"))
+ public boolean handleComponentClick() {
+ return false;
+ }
}