Skip to content

Commit ddb7001

Browse files
committed
Fix VisitorHelper height being wrong when visitors request 2 items
1 parent 962c9bf commit ddb7001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/hysky/skyblocker/skyblock/garden/visitor/VisitorHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public void renderWidget(GuiGraphics context, int mouseX, int mouseY, float delt
227227

228228
index++;
229229
}
230-
setHeight((groupedItems.size() + activeVisitors.size()) * (LINE_HEIGHT + Minecraft.getInstance().font.lineHeight) + PADDING * 2);
230+
setHeight((groupedItems.size() + visitorsByItem.size()) * (LINE_HEIGHT + Minecraft.getInstance().font.lineHeight) + PADDING * 2);
231231
setWidth(newWidth + PADDING * 2);
232232
exclusionZoneWidth = getWidth();
233233
exclusionZoneHeight = getHeight();

0 commit comments

Comments
 (0)