Skip to content

Commit

Permalink
fix call to entryClicked
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceWalkerRS committed Dec 23, 2023
1 parent 6975706 commit c14de1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public void handleMouse() {
int selectedPos = selectedY / this.entryHeight;
if (mouseX >= rowMinX && mouseX <= rowMaxX && selectedPos >= 0 && selectedY >= 0 && selectedPos < size) {
int selectedIndex = selectedPos == this.pos && Minecraft.getTime() - this.time < 250L ? 1 : 0;
this.entryClicked(selectedPos, selectedIndex != 0, mouseX, mouseY);
this.entryClicked(selectedPos, selectedIndex != 0);
this.pos = selectedPos;
this.time = Minecraft.getTime();
} else if (mouseX >= rowMinX && mouseX <= rowMaxX && selectedY < 0) {
Expand Down

0 comments on commit c14de1c

Please sign in to comment.