Skip to content

Commit

Permalink
Merge pull request #21 from LostLuma/fix/search-crash-legacy
Browse files Browse the repository at this point in the history
Fix crash when search yields no results
  • Loading branch information
SpaceWalkerRS authored Feb 21, 2025
2 parents 4a43258 + 8f35b34 commit 22001f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void render(int mouseX, int mouseY, float tickDelta) {
bufferBuilder.vertex(this.minX, this.maxY - n3, 0.0, 0.0, 0.0);
bufferBuilder.end();
n2 = this.getMaxScroll();
if (n2 > 0) {
if (n2 > 0 && this.getHeight() > 0) {
int n11;
n = (this.maxY - this.minY) * (this.maxY - this.minY) / this.getHeight();
if (n < 32) {
Expand Down

0 comments on commit 22001f5

Please sign in to comment.