aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java
diff options
context:
space:
mode:
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.java5
1 files changed, 3 insertions, 2 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 e0d0230..e337ee3 100644
--- a/src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java
+++ b/src/main/java/dev/isxander/yacl/gui/controllers/ActionController.java
@@ -3,6 +3,7 @@ package dev.isxander.yacl.gui.controllers;
import dev.isxander.yacl.api.ButtonOption;
import dev.isxander.yacl.api.Controller;
import dev.isxander.yacl.api.utils.Dimension;
+import dev.isxander.yacl.gui.AbstractWidget;
import dev.isxander.yacl.gui.YACLScreen;
import net.minecraft.text.Text;
import org.jetbrains.annotations.ApiStatus;
@@ -62,7 +63,7 @@ public class ActionController implements Controller<Consumer<YACLScreen>> {
* {@inheritDoc}
*/
@Override
- public ControllerWidget<ActionController> provideWidget(YACLScreen screen, Dimension<Integer> widgetDimension) {
+ public AbstractWidget provideWidget(YACLScreen screen, Dimension<Integer> widgetDimension) {
return new ActionControllerElement(this, screen, widgetDimension);
}
@@ -88,7 +89,7 @@ public class ActionController implements Controller<Consumer<YACLScreen>> {
@Override
public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
- if (!focused && !hovered) {
+ if (!focused) {
return false;
}