Fixes #1465 faulty item comparison

This commit is contained in:
yueh
2015-05-18 17:52:56 +02:00
parent a349e1a277
commit 7fa7502770
3 changed files with 9 additions and 6 deletions
@@ -85,7 +85,10 @@ public final class WrappedDamageItemDefinition implements ITileDefinition
return false;
}
return this.definition.isSameAs( comparableStack ) && comparableStack.getItemDamage() == this.damage;
final boolean sameItem = this.definition.isSameAs( new ItemStack( comparableStack.getItem() ) );
final boolean sameDamage = comparableStack.getItemDamage() == this.damage;
return sameItem && sameDamage;
}
@Override