diff --git a/src/main/java/net/kyrptonaught/quickshulker/api/Util.java b/src/main/java/net/kyrptonaught/quickshulker/api/Util.java index cc578bf..1800721 100644 --- a/src/main/java/net/kyrptonaught/quickshulker/api/Util.java +++ b/src/main/java/net/kyrptonaught/quickshulker/api/Util.java @@ -60,7 +60,8 @@ public static boolean canOpenInHand(ItemStack stack) { } public static boolean areItemsEqual(ItemStack stack1, ItemStack stack2) { - return ItemStack.areItemsEqual(stack1, stack2) && ItemStack.areEqual(stack1, stack2) && stack1.getCount() == stack2.getCount(); + QuickShulkerData qsdata = QuickOpenableRegistry.getQuickie(stack1.getItem()); + return ItemStack.areItemsEqual(stack1, stack2) && ItemStack.areEqual(stack1, stack2) && stack1.getCount() == stack2.getCount() && (qsdata.ignoreSingleStackCheck || stack1.getCount() == 1); } public static ScreenHandlerListener forceCloseScreenIfNotPresent(PlayerEntity player, int slotID, ItemStack stack) {