mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Allow coloring of tools, made Tool Recipes Itemstack sensitive to allow more customizable recipes
This commit is contained in:
1 parent
11cd2011e8
commit
22bdbdd209
4 files changed
+74
-35
No files matched your search
@@ -2,6 +2,7 @@ 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;
|
||||
|
||||
@@ -24,13 +25,13 @@ public class BowRecipe extends ToolRecipe
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean validHead (Item input)
|
||||
public boolean validHead (ItemStack input)
|
||||
{
|
||||
for (Item part : headList)
|
||||
{
|
||||
if (part == input)
|
||||
if (part == input.getItem())
|
||||
return true;
|
||||
if (toolRod != null && part == toolRod && (input == Items.stick || input == Items.bone))
|
||||
if (toolRod != null && part == toolRod && (input.getItem() == Items.stick || input.getItem() == Items.bone))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user