Add Accepts Label (#1007)

This commit is contained in:
slprime authored and GitHub committed 2026-08-14 22:41:15 +03:00
1 parent 75d53b12ca
commit f8d00a5445
4 files changed
+34 -3

No files matched your search

@@ -92,6 +92,11 @@ public class ItemsTooltipLineHandler implements ITooltipLineHandler {
this.labelColor = color;
}
public void setLabel(String label) {
this.label = label;
this.size.width = Math.max(this.columns * SLOT_SIZE, fontRenderer.getStringWidth(this.label) + 15);
}
@Override
public void draw(int x, int y) {
if (this.length == 0) return;