diff options
Diffstat (limited to 'src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java')
-rw-r--r-- | src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java b/src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java index e337ee3..3550072 100644 --- a/src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java +++ b/src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java @@ -80,7 +80,7 @@ public class ActionController implements Controller<Consumer<YACLScreen>> { @Override public boolean mouseClicked(double mouseX, double mouseY, int button) { - if (isMouseOver(mouseX, mouseY)) { + if (isMouseOver(mouseX, mouseY) && isAvailable()) { executeAction(); return true; } |