From d4e2d0b54ffa56f744ecb5630ded432fcde6ca37 Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Thu, 21 May 2020 00:18:53 +0300 Subject: Fix player inventories resizing their labels to 18x18 --- src/main/java/io/github/cottonmc/cotton/gui/widget/WPlayerInvPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WPlayerInvPanel.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WPlayerInvPanel.java index c99793d..da2ac1c 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WPlayerInvPanel.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WPlayerInvPanel.java @@ -45,7 +45,7 @@ public class WPlayerInvPanel extends WPlainPanel { int y = 0; if (label != null) { - this.add(label, 0, 0); + this.add(label, 0, 0, label.getWidth(), label.getHeight()); y += label.getHeight(); } -- cgit