In MinecraftTicker, only handle Key Input if no GUI is open as the GUI will invoke the same dispatchKeypresses() method itself

This commit is contained in:
CrushedPixel
2015-07-13 16:08:21 +02:00
parent 3f12019288
commit 2297808e9d

View File

@@ -93,7 +93,9 @@ public class MinecraftTicker {
mc.debugCrashKeyPressTime = Minecraft.getSystemTime();
}
mc.dispatchKeypresses();
if(mc.currentScreen == null) {
mc.dispatchKeypresses();
}
if(Keyboard.getEventKeyState()) {
if(i == 62 && mc.entityRenderer != null) {