SvenKayser / JMOD

The Javascript MOD Loader
Other
8 stars 3 forks source link

Feature/3.tool material fix #36

Closed nmarshall23 closed 7 years ago

nmarshall23 commented 7 years ago

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:

  1. I haven't removed the old patching code from Lib.java.
  2. I also haven't reviewed AddArmorMaterial, I would bet this kind of bug could happen there too.