Replace the hardcoded stick/bone handle with an oredicted variant using the ToolBuildEvent

This commit is contained in:
Bernhard Bonigl committed 2014-08-15 13:04:03 +02:00
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;