Fix repair

This commit is contained in:
nossr50 2020-06-24 23:39:14 -07:00
parent c84c428fde
commit 83617b73b7
3 changed files with 9 additions and 1 deletions

View File

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

View File

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

View File

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