Răsfoiți Sursa

Tooltips don't require the tab button to be active

Signed-off-by: shedaniel <daniel@shedaniel.me>
shedaniel 4 ani în urmă
părinte
comite
29cca91eb5

+ 1 - 1
gradle.properties

@@ -5,5 +5,5 @@ minecraft_version=20w30a
 yarn_mappings=20w30a+build.3+legacy.20w09a+build.8
 loader_version=0.9.0+build.204
 fabric_version=0.15.2+build.382-1.16
-mod_version=4.8.0
+mod_version=4.8.1
 modmenu_version=1.14.6+build.31

+ 1 - 1
src/main/java/me/shedaniel/clothconfig2/gui/ClothConfigTabButton.java

@@ -59,7 +59,7 @@ public class ClothConfigTabButton extends AbstractPressableButtonWidget {
     
     @Override
     public boolean isMouseOver(double double_1, double double_2) {
-        return this.active && this.visible && double_1 >= this.x && double_2 >= this.y && double_1 < this.x + this.width && double_2 < this.y + this.height && double_1 >= 20 && double_1 < screen.width - 20;
+        return this.visible && double_1 >= this.x && double_2 >= this.y && double_1 < this.x + this.width && double_2 < this.y + this.height && double_1 >= 20 && double_1 < screen.width - 20;
     }
 
     public Optional<StringRenderable[]> getTooltip() {