Support Mangrove Wood for Barrels

This commit is contained in:
Sn0wStorm
2022-07-09 20:42:27 +02:00
parent 45bfc36226
commit 902a0bbd2c
12 changed files with 14 additions and 11 deletions
+1 -1
View File
@@ -325,7 +325,7 @@ public class BRecipe {
P.p.errorLog("Invalid distilltime '" + distillTime + "' in Recipe: " + getRecipeName());
return false;
}
if (wood < 0 || wood > 8) {
if (wood < 0 || wood > 9) {
P.p.errorLog("Invalid wood type '" + wood + "' in Recipe: " + getRecipeName());
return false;
}
@@ -60,6 +60,7 @@ public class LegacyUtil {
get("DARK_OAK_STAIRS"),
get("CRIMSON_STAIRS"),
get("WARPED_STAIRS"),
get("MANGROVE_STAIRS"),
};
for (Material stair : gotStairs) {
if (stair != null) {
@@ -186,6 +187,8 @@ public class LegacyUtil {
return 7;
} else if (material.startsWith("WARPED")) {
return 8;
} else if (material.startsWith("MANGROVE")) {
return 9;
} else {
return 0;
}