Use the correct default repair material for netherite gear

This commit is contained in:
nossr50 2020-06-26 15:00:52 -07:00
parent cf78b51052
commit 6b340838ee
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,8 @@
Version 2.1.130
Fixed a bug that prevented Repair from working on the new Netherite weapons/armors
Fixed a bug where Netherite gear used Gold Ingots to repair instead of Netherite Scraps (by default)
mcMMO will now run a script to fix a misspelling of netherite in repair/salvage configs (script only runs once and then never again)
mcMMO will produce a fake ItemDamageEvent before damaging axes in Tree Feller execution
NOTES:

View File

@ -37,10 +37,10 @@ public enum MaterialType {
return Material.DIAMOND;
case NETHER:
if(Material.getMaterial("netherite_scrap") != null)
return Material.getMaterial("netherite_scrap");
if(Material.getMaterial("NETHERITE_SCRAP") != null)
return Material.getMaterial("NETHERITE_SCRAP");
else
return Material.GOLD_INGOT;
return Material.DIAMOND;
case OTHER:
default: