From 475a70f144b3851e54ded0ab69a0478342646743 Mon Sep 17 00:00:00 2001 From: mezz Date: Tue, 16 Sep 2014 00:03:12 -0700 Subject: [PATCH] Fixes #145. Worktable can use IC2 RE-Battery and other strange NBT items --- src/main/java/forestry/core/utils/StackUtils.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/forestry/core/utils/StackUtils.java b/src/main/java/forestry/core/utils/StackUtils.java index ee5891f06..0eb820649 100755 --- a/src/main/java/forestry/core/utils/StackUtils.java +++ b/src/main/java/forestry/core/utils/StackUtils.java @@ -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); } /**