mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Use the correct default repair material for netherite gear
This commit is contained in:
parent
cf78b51052
commit
6b340838ee
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user