mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Fix potential exception on macro activation
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user