From dc65fedc8341928ff6111fe22b5c11d1884bc4e7 Mon Sep 17 00:00:00 2001 From: Gabriel Henrique de Oliveira <17054373+GabrielOlvH@users.noreply.github.com> Date: Sun, 18 Apr 2021 07:31:15 -0300 Subject: fix dupe with guis without block inventory (#104) --- src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } } -- cgit