Fix IOBE when using special keys and replay is paused
Fix mouse buttons not working when replay is paused
This commit is contained in:
@@ -39,14 +39,7 @@ public class KeyInputHandler {
|
||||
boolean forward = false, backward = false, left = false, right = false, up = false, down = false;
|
||||
|
||||
for(KeyBinding kb : keyBindings) {
|
||||
//don't act on Mouse inputs
|
||||
if(kb.getKeyCode() < 0) continue;
|
||||
|
||||
if(!ReplayMod.replaySender.paused() && !kb.isKeyDown()) continue;
|
||||
|
||||
if(ReplayMod.replaySender.paused() && !Keyboard.isKeyDown(kb.getKeyCode()))
|
||||
continue;
|
||||
try {
|
||||
if(!kb.isKeyDown()) continue;
|
||||
if(ReplayHandler.isCamera()) {
|
||||
if(kb.getKeyDescription().equals("key.forward")) {
|
||||
forward = true;
|
||||
@@ -82,10 +75,6 @@ public class KeyInputHandler {
|
||||
ReplayHandler.spectateCamera();
|
||||
}
|
||||
}
|
||||
|
||||
} catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
forwardCameraMovement(forward, backward, left, right, up, down);
|
||||
|
||||
Reference in New Issue
Block a user