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 {
@Override
public int getButton() {
throw new UnsupportedOperationException("Emulated event.");
return 1; // Emulate left mouse button
}
@Override
public int getX() {
throw new UnsupportedOperationException("Emulated event.");
return 0; // Hopefully this doesn't do anything wonky!
}
@Override
public int getY() {
throw new UnsupportedOperationException("Emulated event.");
return 0;
}
}
}