Fix areStacksSameTypeWithNBT damage check (#896)

This commit is contained in:
slprime authored and GitHub committed 2026-03-19 14:43:45 +02:00
1 parent ecdf7892ce
commit d40b951cce
1 file changed
+1 -1
@@ -183,7 +183,7 @@ public class NEIServerUtils {
public static boolean areStacksSameTypeWithNBT(ItemStack stack1, ItemStack stack2) {
return stack1 != null && stack2 != null
&& stack1.getItem() == stack2.getItem()
&& (!stack2.getHasSubtypes() || stack2.getItemDamage() == stack1.getItemDamage())
&& (stack2.isItemStackDamageable() || stack2.getItemDamage() == stack1.getItemDamage())
&& NBTHelper.matchTag(stack1.getTagCompound(), stack2.getTagCompound());
}