Skip to content

Commit

Permalink
fix shulker stack cause dupe
Browse files Browse the repository at this point in the history
Signed-off-by: Hao_cen <[email protected]>
  • Loading branch information
Haocen2004 committed Jul 18, 2024
1 parent a71b35e commit 823b3ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/kyrptonaught/quickshulker/api/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 823b3ec

Please sign in to comment.