mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Fixes #145. Worktable can use IC2 RE-Battery and other strange NBT items
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user