Make loading RGB colors easier

This commit is contained in:
Sn0wStorm
2019-08-17 22:42:58 +02:00
parent c39b35d82a
commit 9567feed81
7 changed files with 34 additions and 12 deletions
+2 -3
View File
@@ -145,9 +145,8 @@ public class BRecipe {
P.p.errorLog("Invalid age time '" + age + "' in Recipe: " + getName(5));
return false;
}
try {
Brew.PotionColor.fromString(getColor());
} catch (IllegalArgumentException e) {
String c = getColor();
if (!c.equals("WATER") && Brew.PotionColor.fromString(c) == Brew.PotionColor.WATER) {
P.p.errorLog("Invalid Color '" + color + "' in Recipe: " + getName(5));
return false;
}