Skip to content

Commit

Permalink
Fix chiseling depending on the itemdamage of the chisel o_O
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Oct 6, 2014
1 parent 6420d2a commit 2f33bd0
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -37,15 +37,19 @@ public boolean matches (InventoryCrafting par1InventoryCrafting, World par2World
ItemStack itemstack1 = (ItemStack) iterator.next();

// TConstruct.logger.info("Rawr! "+itemstack1.getItemDamage());
if (itemstack.getItem() == itemstack1.getItem() && (itemstack1.getItemDamage() == Short.MAX_VALUE || itemstack.getItemDamage() == itemstack1.getItemDamage()))
if (itemstack.getItem() == itemstack1.getItem())
{
if (itemstack.getItem() instanceof ToolCore)
{
NBTTagCompound tags = itemstack.getTagCompound().getCompoundTag("InfiTool");
if (tags.getBoolean("Broken"))
return false;

flag = true;
}
flag = true;
else if((itemstack1.getItemDamage() == Short.MAX_VALUE || itemstack.getItemDamage() == itemstack1.getItemDamage()))
flag = true;

arraylist.remove(itemstack1);
break;
}
Expand Down

0 comments on commit 2f33bd0

Please sign in to comment.