Skip to content

Commit

Permalink
Fix Spool Repairing
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander committed Apr 17, 2014
1 parent d878cd1 commit 0ab3ef0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/tmechworks/common/SpoolRepairRecipe.java
Expand Up @@ -29,15 +29,15 @@ public boolean matches (InventoryCrafting inventorycrafting, World world)
tmpStack = inventorycrafting.getStackInSlot(i);
if (tmpStack instanceof ItemStack)
{
if (tmpStack == spool)
if (tmpStack.getItem() == spool.getItem())
{
if (foundSpool)
{
return false;
}
foundSpool = true;
}
else if (tmpStack == wire && tmpStack.getItemDamage() == wire.getItemDamage())
else if (tmpStack.getItem() == wire.getItem() && tmpStack.getItemDamage() == wire.getItemDamage())
{
++countWire;
}
Expand Down Expand Up @@ -67,11 +67,11 @@ public ItemStack getCraftingResult (InventoryCrafting inventorycrafting)
tmpStack = inventorycrafting.getStackInSlot(i);
if (tmpStack instanceof ItemStack)
{
if (tmpStack == spool)
if (tmpStack.getItem() == spool.getItem())
{
newSpool = tmpStack.copy();
}
else if (tmpStack == wire && tmpStack.getItemDamage() == wire.getItemDamage())
else if (tmpStack.getItem() == wire.getItem() && tmpStack.getItemDamage() == wire.getItemDamage())
{
++countWire;
}
Expand All @@ -98,4 +98,4 @@ public ItemStack getRecipeOutput ()
return spool.copy();
}

}
}

0 comments on commit 0ab3ef0

Please sign in to comment.