mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 08:54:12 +00:00
Make tool parts less restrictive when it comes to materials. Re-enables native support for externally added material parts (like ExtraTiC)
This commit is contained in:
1 parent
f9a4fd2377
commit
253638ebb4
1 file changed
+4
-3
@@ -81,8 +81,9 @@ public class ToolPart extends CraftingItem implements IToolPart
|
||||
@Override
|
||||
public int getMaterialID (ItemStack stack)
|
||||
{
|
||||
if(stack.getItemDamage() >= toolMaterialNames.length)
|
||||
return -1;
|
||||
return stack.getItemDamage();
|
||||
if(TConstructRegistry.toolMaterials.keySet().contains(stack.getItemDamage()))
|
||||
return stack.getItemDamage();
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user