Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.20.3' into 1.20.3
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed May 15, 2024
2 parents e9c0031 + bb3d029 commit 245d5fb
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 245d5fb

Please sign in to comment.