Fixes #145. Worktable can use IC2 RE-Battery and other strange NBT items

This commit is contained in:
mezz committed 2014-09-16 00:03:12 -07:00
1 parent a3c562c1b1
commit 475a70f144
1 file changed
+5 -5
@@ -311,11 +311,11 @@ public class StackUtils {
if (base.getItemDamage() != comparison.getItemDamage())
return false;
// When the base stackTagCompound is null, treat it as a wildcard for crafting
if (base.stackTagCompound != null && !ItemStack.areItemStackTagsEqual(base, comparison))
return false;
return true;
// When the base stackTagCompound is null or empty, treat it as a wildcard for crafting
if (base.stackTagCompound == null || base.stackTagCompound.hasNoTags())
return true;
else
return ItemStack.areItemStackTagsEqual(base, comparison);
}
/**