]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - src/main/java/com/irtimaled/bbor/client/gui/AbstractButton.java
Upgrade to 1.14.2
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / client / gui / AbstractButton.java
index 4951981c60a6d40edc78874773fb6f0b8e4f9938..1ceed2ea688677f4611868004812fc6bf0ef0fea 100644 (file)
@@ -7,16 +7,16 @@ abstract class AbstractButton extends AbstractControl {
 
     AbstractButton(int x, int y, int width, String name, boolean enabled) {
         this(x, y, width, name);
-        this.enabled = enabled;
+        this.active = enabled;
     }
 
     @Override
-    protected int getHoverState(boolean p_getHoverState_1_) {
+    protected int getYImage(boolean p_getHoverState_1_) {
         return getState();
     }
 
     protected int getState() {
-        return this.enabled ? this.hovered ? 2 : 1 : 0;
+        return this.active ? this.isHovered ? 2 : 1 : 0;
     }
 
     @Override