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;
|
boolean forward = false, backward = false, left = false, right = false, up = false, down = false;
|
||||||
|
|
||||||
for(KeyBinding kb : keyBindings) {
|
for(KeyBinding kb : keyBindings) {
|
||||||
//don't act on Mouse inputs
|
if(!kb.isKeyDown()) continue;
|
||||||
if(kb.getKeyCode() < 0) continue;
|
|
||||||
|
|
||||||
if(!ReplayMod.replaySender.paused() && !kb.isKeyDown()) continue;
|
|
||||||
|
|
||||||
if(ReplayMod.replaySender.paused() && !Keyboard.isKeyDown(kb.getKeyCode()))
|
|
||||||
continue;
|
|
||||||
try {
|
|
||||||
if(ReplayHandler.isCamera()) {
|
if(ReplayHandler.isCamera()) {
|
||||||
if(kb.getKeyDescription().equals("key.forward")) {
|
if(kb.getKeyDescription().equals("key.forward")) {
|
||||||
forward = true;
|
forward = true;
|
||||||
@@ -82,10 +75,6 @@ public class KeyInputHandler {
|
|||||||
ReplayHandler.spectateCamera();
|
ReplayHandler.spectateCamera();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
forwardCameraMovement(forward, backward, left, right, up, down);
|
forwardCameraMovement(forward, backward, left, right, up, down);
|
||||||
|
|||||||
Reference in New Issue
Block a user