Make GuiAdvancedButton only perform actions when enabled
This commit is contained in:
@@ -84,7 +84,7 @@ public class GuiAdvancedButton extends GuiButton implements GuiElement {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mouseClick(Minecraft mc, int mouseX, int mouseY, int button) {
|
public boolean mouseClick(Minecraft mc, int mouseX, int mouseY, int button) {
|
||||||
if (isHovering(mouseX, mouseY)) {
|
if (isHovering(mouseX, mouseY) && enabled) {
|
||||||
performAction();
|
performAction();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user