aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-05-21 00:18:53 +0300
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-05-21 00:18:53 +0300
commitd4e2d0b54ffa56f744ecb5630ded432fcde6ca37 (patch)
tree9a88a37ea514f4de8e8138ccafd85e5838bfe4fe /src
parent6f8f85c5fd29021152ce6f8969e060fd6e3fbe83 (diff)
downloadLibGui-d4e2d0b54ffa56f744ecb5630ded432fcde6ca37.tar.gz
LibGui-d4e2d0b54ffa56f744ecb5630ded432fcde6ca37.tar.bz2
LibGui-d4e2d0b54ffa56f744ecb5630ded432fcde6ca37.zip
Fix player inventories resizing their labels to 18x18
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WPlayerInvPanel.java2
1 files changed, 1 insertions, 1 deletions
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();
}