From 7c0c114fb5f762e1c34da2d0acf4eea6735efc12 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 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; } } } -- cgit