This patch prioritizes new Tool Material added via AddToolMaterial over the Tool Materials found in the minecraft ToolMaterial enum. I also found that I had to explicitly set item.setHarvestLevel for some tools.
I moved the Patching code to it's own class. It's big enough that I don't want to clutter Lib.java.
Todo:
I haven't removed the old patching code from Lib.java.
I also haven't reviewed AddArmorMaterial, I would bet this kind of bug could happen there too.
This should fix Issue #2
This patch prioritizes new Tool Material added via AddToolMaterial over the Tool Materials found in the minecraft ToolMaterial enum. I also found that I had to explicitly set
item.setHarvestLevel
for some tools.I moved the Patching code to it's own class. It's big enough that I don't want to clutter
Lib.java
.Todo:
Lib.java
.