Browse Source

Fix repair

nossr50 5 years ago
parent
commit
83617b73b7

+ 6 - 0
Changelog.txt

@@ -1,3 +1,9 @@
+Version 2.1.130
+    Fixed a bug that prevented Repair from working on the new Netherite weapons/armors
+
+    NOTES:
+    If you are still having issues with Repair/Salvage, delete the repair and salvage .yml files in /plugins/mcMMO and restart the server
+
 Version 2.1.129
     Added new subcommand /mmoxpbar disable - Hides all mcMMO XP bars
     New locale string 'Commands.XPBar.DisableAll'

+ 1 - 1
pom.xml

@@ -167,7 +167,7 @@
         <dependency>
             <groupId>org.spigotmc</groupId>
             <artifactId>spigot-api</artifactId>
-            <version>1.15.2-R0.1-SNAPSHOT</version>
+            <version>1.16.1-R0.1-SNAPSHOT</version>
             <scope>provided</scope>
         </dependency>
         <dependency>

+ 2 - 0
src/main/java/com/gmail/nossr50/config/skills/repair/RepairConfig.java

@@ -80,6 +80,8 @@ public class RepairConfig extends ConfigLoader {
                 }
                 else if (ItemUtils.isDiamondArmor(repairItem) || ItemUtils.isDiamondTool(repairItem)) {
                     repairMaterialType = MaterialType.DIAMOND;
+                } else if (ItemUtils.isNetheriteArmor(repairItem) || ItemUtils.isNetheriteTool(repairItem)) {
+                    repairMaterialType = MaterialType.NETHER;
                 }
             }
             else {