Skip to content

Commit

Permalink
Merge pull request #2322 from fayer3/1.20.3-right-click-fix
Browse files Browse the repository at this point in the history
fix right clicking shader options
  • Loading branch information
IMS212 committed May 15, 2024
2 parents c3c199e + 1148ca5 commit bb3d029
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import net.minecraft.util.Mth;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.lwjgl.glfw.GLFW;

import java.io.IOException;
import java.io.InputStream;
Expand Down Expand Up @@ -86,6 +87,11 @@ public int getRowWidth() {
return Math.min(400, width - 12);
}

@Override
protected boolean isValidMouseClick(int i) {
return i == GLFW.GLFW_MOUSE_BUTTON_1 || i == GLFW.GLFW_MOUSE_BUTTON_2;
}

public void addHeader(Component text, boolean backButton) {
this.addEntry(new HeaderEntry(this.screen, this.navigation, text, backButton));
}
Expand Down

0 comments on commit bb3d029

Please sign in to comment.