diff options
author | Gabriel Henrique de Oliveira <17054373+GabrielOlvH@users.noreply.github.com> | 2021-04-18 07:31:15 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-18 13:31:15 +0300 |
commit | 7c0c114fb5f762e1c34da2d0acf4eea6735efc12 (patch) | |
tree | f88270ff734c01377e0df8b7ada5cee77a60fbde | |
parent | cec9dad5893df373bfd1fe07818b7c4c262dc391 (diff) | |
download | LibGui-7c0c114fb5f762e1c34da2d0acf4eea6735efc12.tar.gz LibGui-7c0c114fb5f762e1c34da2d0acf4eea6735efc12.tar.bz2 LibGui-7c0c114fb5f762e1c34da2d0acf4eea6735efc12.zip |
fix dupe with guis without block inventory (#104)
-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 b275983..981e97a 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java @@ -259,7 +259,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; } } } |