aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorJuuz <6596629+Juuxel@users.noreply.github.com>2023-11-26 16:27:26 +0200
committerJuuz <6596629+Juuxel@users.noreply.github.com>2023-11-26 16:27:26 +0200
commitc9af717918d1553df6d7d6338a1d4a270f274870 (patch)
tree845323c4bf9dfa02e69dd8eb7ab92bc5f743ba24 /src/main
parent20e4bcf624d211ac0be0cfad54d795fff2e3fec0 (diff)
downloadLibGui-c9af717918d1553df6d7d6338a1d4a270f274870.tar.gz
LibGui-c9af717918d1553df6d7d6338a1d4a270f274870.tar.bz2
LibGui-c9af717918d1553df6d7d6338a1d4a270f274870.zip
Fix WItemSlot.iconOnlyPaintedForEmptySlots being flipped
Fixes #229.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java
index f5e90ef..bfe64a2 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WItemSlot.java
@@ -513,7 +513,7 @@ public class WItemSlot extends WWidget {
backgroundPainter.paintBackground(context, x, y, this);
}
- if (icon != null && (iconOnlyPaintedForEmptySlots || inventory.getStack(startIndex).isEmpty())) {
+ if (icon != null && (!iconOnlyPaintedForEmptySlots || inventory.getStack(startIndex).isEmpty())) {
icon.paint(context, x + 1, y + 1, 16);
}
}