Made GuiNpcButtons with multiple displays i.e ("Hair","Eyes","Fur")

right clickable to select in reverse
This commit is contained in:
bigguy345 committed 2025-12-09 17:46:07 +02:00
1 parent ddee62f2ce
commit 93e6a92b59
5 files changed
+91 -3

No files matched your search

@@ -61,6 +61,8 @@ public class GuiButtonBiDirectional extends GuiNpcButton {
boolean bo = super.mousePressed(minecraft, mouseX, mouseY);
if (bo && display != null && display.length != 0) {
boolean hoverL = mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + 11 && mouseY < this.yPosition + this.height;
if (rightClicked.get())
hoverL = true;
boolean hoverR = !hoverL && mouseX >= this.xPosition + 11 && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height;