Open mouse input gui when command key is pressed

This commit is contained in:
johni0702
2015-08-31 13:41:35 +02:00
parent bc7a67cda3
commit d72d12783f

View File

@@ -158,7 +158,8 @@ public class KeyInputHandler {
if(!ReplayHandler.isInReplay() || (mc.currentScreen != null && !(mc.currentScreen instanceof GuiMouseInput))) return; if(!ReplayHandler.isInReplay() || (mc.currentScreen != null && !(mc.currentScreen instanceof GuiMouseInput))) return;
if(kb.getKeyDescription().equals("key.chat") && (kb.isPressed() || kb.getKeyCode() == keyCode)) { if((kb.getKeyDescription().equals("key.chat") || kb.getKeyDescription().equals("key.command"))
&& (kb.isPressed() || kb.getKeyCode() == keyCode)) {
mc.displayGuiScreen(new GuiMouseInput(ReplayMod.overlay)); mc.displayGuiScreen(new GuiMouseInput(ReplayMod.overlay));
} }