forked from RepoMirrors/kami-blue
Merge remote-tracking branch 'origin/feature/master' into feature/master
This commit is contained in:
commit
28b57e65ed
|
@ -108,7 +108,9 @@ public class ForgeEventProcessor {
|
||||||
public void onKeyInput(InputEvent.KeyInputEvent event) {
|
public void onKeyInput(InputEvent.KeyInputEvent event) {
|
||||||
if (!Keyboard.getEventKeyState()) return;
|
if (!Keyboard.getEventKeyState()) return;
|
||||||
if (("" + Keyboard.getEventCharacter()).equalsIgnoreCase(Command.getCommandPrefix())) {
|
if (("" + Keyboard.getEventCharacter()).equalsIgnoreCase(Command.getCommandPrefix())) {
|
||||||
|
if (!Minecraft.getMinecraft().player.isSneaking()) {
|
||||||
Minecraft.getMinecraft().displayGuiScreen(new GuiChat(Command.getCommandPrefix()));
|
Minecraft.getMinecraft().displayGuiScreen(new GuiChat(Command.getCommandPrefix()));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ModuleManager.onBind(Keyboard.getEventKey());
|
ModuleManager.onBind(Keyboard.getEventKey());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue