mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 07:49:03 +00:00
Make loading RGB colors easier
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user