This commit is contained in:
nossr50 2020-03-03 18:14:56 -08:00
parent 51e80f40dd
commit ff8c94bf44
4 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,6 @@
Version 2.1.121
Fixed a netherite related bug that prevented mcMMO from functioning correctly
Version 2.1.120 Version 2.1.120
Fixed a bug involving the new netherite equipment Fixed a bug involving the new netherite equipment

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId> <groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId> <artifactId>mcMMO</artifactId>
<version>2.1.121-SNAPSHOT</version> <version>2.1.121</version>
<name>mcMMO</name> <name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url> <url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm> <scm>

View File

@ -48,6 +48,11 @@ public class RepairConfig extends ConfigLoader {
Material itemMaterial = Material.matchMaterial(key); Material itemMaterial = Material.matchMaterial(key);
if (itemMaterial == null) { if (itemMaterial == null) {
if(key.toLowerCase().contains("nether")) {
mcMMO.p.getLogger().info("No support for repair item "+key+ " in this version of Minecraft, skipping.");
continue;
}
reason.add("Invalid material: " + key); reason.add("Invalid material: " + key);
} }

View File

@ -45,6 +45,12 @@ public class SalvageConfig extends ConfigLoader {
Material itemMaterial = Material.matchMaterial(key); Material itemMaterial = Material.matchMaterial(key);
if (itemMaterial == null) { if (itemMaterial == null) {
if(key.toLowerCase().contains("nether")) {
mcMMO.p.getLogger().info("No support for salvage item "+key+ " in this version of Minecraft, skipping.");
continue;
}
reason.add("Invalid material: " + key); reason.add("Invalid material: " + key);
} }