Factor in nbt when transfering items (#10)

This commit is contained in:
Caedis authored and GitHub committed 2024-01-26 10:29:12 -06:00
1 parent e646a54066
commit a93a59bb81
1 file changed
+2 -1
@@ -132,7 +132,8 @@ public class DeobfuscationLayer {
}
protected static boolean areStacksCompatible(ItemStack itemStack1, ItemStack itemStack2) {
return ((itemStack1 == null) || (itemStack2 == null)) || itemStack1.isItemEqual(itemStack2);
return ((itemStack1 == null) || (itemStack2 == null))
|| (itemStack1.isItemEqual(itemStack2) && ItemStack.areItemStackTagsEqual(itemStack1, itemStack2));
}
protected static Slot getSelectedSlot(GuiContainer guiContainer, Container container, int slotCount) {