Only handle key inputs during replay
This commit is contained in:
@@ -96,6 +96,8 @@ public class KeyInputHandler {
|
|||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void keyInput(InputEvent.KeyInputEvent event) {
|
public void keyInput(InputEvent.KeyInputEvent event) {
|
||||||
|
if (!ReplayHandler.isInReplay()) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
onKeyInput();
|
onKeyInput();
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user