Fix potential exception on macro activation

This commit is contained in:
nefigah
2017-02-02 17:28:19 +00:00
parent 13941c9264
commit 40c61f50a2

View File

@@ -2087,17 +2087,17 @@ public class PlayerControllerHuman
private class DummyTriggerEvent implements ITriggerEvent { private class DummyTriggerEvent implements ITriggerEvent {
@Override @Override
public int getButton() { public int getButton() {
throw new UnsupportedOperationException("Emulated event."); return 1; // Emulate left mouse button
} }
@Override @Override
public int getX() { public int getX() {
throw new UnsupportedOperationException("Emulated event."); return 0; // Hopefully this doesn't do anything wonky!
} }
@Override @Override
public int getY() { public int getY() {
throw new UnsupportedOperationException("Emulated event."); return 0;
} }
} }
} }