diff options
author | Gabriel Henrique de Oliveira <17054373+GabrielOlvH@users.noreply.github.com> | 2021-04-18 07:31:15 -0300 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-05-29 15:59:06 +0300 |
commit | dc65fedc8341928ff6111fe22b5c11d1884bc4e7 (patch) | |
tree | 74dc0f959f4f5dfe0f35b5706f56b2344adaa1a7 /src/main | |
parent | e13463aa85037298b0560c68353af71bc70421c6 (diff) | |
download | LibGui-dc65fedc8341928ff6111fe22b5c11d1884bc4e7.tar.gz LibGui-dc65fedc8341928ff6111fe22b5c11d1884bc4e7.tar.bz2 LibGui-dc65fedc8341928ff6111fe22b5c11d1884bc4e7.zip |
fix dupe with guis without block inventory (#104)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java b/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java index 3526cb1..f7b5688 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java @@ -260,7 +260,7 @@ public class SyncedGuiDescription extends ScreenHandler implements GuiDescriptio hotbarSlots.add(slot); } else { storageSlots.add(slot); - if (index==slotNumber) swapToStorage = false; + if (slot.id==slotNumber) swapToStorage = false; } } } |