From 70ffc04bc124c5c1dff933c34f27e5af1303158a Mon Sep 17 00:00:00 2001 From: Bella Who Date: Tue, 11 Feb 2020 11:14:31 -0500 Subject: [PATCH] Don't run prefixchat when sneaking (#436) * close #431 * Firstly, no that would not have worked because im a dumbass and i forgot &&. Secondly, that solved too much and may have broke some weird ppl's binds Co-authored-by: Qther --- .../java/me/zeroeightsix/kami/event/ForgeEventProcessor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/zeroeightsix/kami/event/ForgeEventProcessor.java b/src/main/java/me/zeroeightsix/kami/event/ForgeEventProcessor.java index 30a2b179..bfb981e6 100644 --- a/src/main/java/me/zeroeightsix/kami/event/ForgeEventProcessor.java +++ b/src/main/java/me/zeroeightsix/kami/event/ForgeEventProcessor.java @@ -108,7 +108,9 @@ public class ForgeEventProcessor { public void onKeyInput(InputEvent.KeyInputEvent event) { if (!Keyboard.getEventKeyState()) return; if (("" + Keyboard.getEventCharacter()).equalsIgnoreCase(Command.getCommandPrefix())) { - Minecraft.getMinecraft().displayGuiScreen(new GuiChat(Command.getCommandPrefix())); + if (!Minecraft.getMinecraft().player.isSneaking()) { + Minecraft.getMinecraft().displayGuiScreen(new GuiChat(Command.getCommandPrefix())); + } } else { ModuleManager.onBind(Keyboard.getEventKey()); }