mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
Replace the hardcoded stick/bone handle with an oredicted variant using the ToolBuildEvent
This commit is contained in:
1 parent
e786518807
commit
0b7a8f6b22
2 files changed
+25
-10
No files matched your search
@@ -116,11 +116,8 @@ public class ToolBuilder
|
||||
if (stack == null)
|
||||
return -1;
|
||||
Item item = stack.getItem();
|
||||
if (item == Items.stick)
|
||||
return 0;
|
||||
else if (item == Items.bone)
|
||||
return 5;
|
||||
else if (item instanceof IToolPart)
|
||||
|
||||
if (item instanceof IToolPart)
|
||||
return ((IToolPart) item).getMaterialID(stack);
|
||||
|
||||
return -1;
|
||||
|
||||
Reference in new issue
Block a user