diff options
author | Juuz <6596629+Juuxel@users.noreply.github.com> | 2023-11-26 16:27:26 +0200 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2023-11-26 16:27:26 +0200 |
commit | c9af717918d1553df6d7d6338a1d4a270f274870 (patch) | |
tree | 845323c4bf9dfa02e69dd8eb7ab92bc5f743ba24 /src/main | |
parent | 20e4bcf624d211ac0be0cfad54d795fff2e3fec0 (diff) | |
download | LibGui-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.java | 2 |
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); } } |