Skip to content

Commit

Permalink
Fix sliders not properly updating themselves and other menu elements
Browse files Browse the repository at this point in the history
  • Loading branch information
FoundationGames committed Jan 4, 2022
1 parent 666d003 commit 7189851
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,18 @@ private void onReleased() {
mouseDown = false;

this.queue();
this.navigation.refresh();

GuiUtil.playButtonClickSound();
}

@Override
public boolean mouseClicked(double mx, double my, int button) {
if (button == GLFW.GLFW_MOUSE_BUTTON_1) {
if (Screen.hasShiftDown()) {
this.applyOriginalValue();
if (this.applyOriginalValue()) {
this.navigation.refresh();
}
GuiUtil.playButtonClickSound();

return true;
Expand Down

0 comments on commit 7189851

Please sign in to comment.