aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/SyncedGuiDescription.java2
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;
}
}
}