Reverted Tool Recipe changes, made colorizing use NBT

This commit is contained in:
Vexatos committed 2014-09-21 11:43:53 +02:00
1 parent 4022ea185a
commit ab87cc706e
4 files changed
+43 -48

No files matched your search

@@ -2,7 +2,6 @@ package tconstruct.tools;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import tconstruct.library.crafting.ToolRecipe;
import tconstruct.library.tools.ToolCore;
@@ -25,13 +24,13 @@ public class BowRecipe extends ToolRecipe
}
@Override
public boolean validHead (ItemStack input)
public boolean validHead (Item input)
{
for (Item part : headList)
{
if (part == input.getItem())
if (part == input)
return true;
if (toolRod != null && part == toolRod && (input.getItem() == Items.stick || input.getItem() == Items.bone))
if (toolRod != null && part == toolRod && (input == Items.stick || input == Items.bone))
return true;
}
return false;