Explorar o código

Use the correct default repair material for netherite gear

nossr50 %!s(int64=5) %!d(string=hai) anos
pai
achega
6b340838ee

+ 2 - 0
Changelog.txt

@@ -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:

+ 3 - 3
src/main/java/com/gmail/nossr50/datatypes/skills/MaterialType.java

@@ -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: