Skip to content

Commit

Permalink
Fix crash when search yields no results
Browse files Browse the repository at this point in the history
Signed-off-by: Lilly Rose Berner <lilly@lostluma.net>
  • Loading branch information
LostLuma authored and SpaceWalkerRS committed Feb 21, 2025
1 parent fcdc95c commit 3cbadef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,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 3cbadef

Please sign in to comment.