Merge pull request #179 from Sataniel98/master

Add RGB colored potions
This commit is contained in:
Sn0wStorm
2019-08-17 21:50:30 +02:00
committed by GitHub
4 changed files with 54 additions and 21 deletions
+2 -2
View File
@@ -146,7 +146,7 @@ public class BRecipe {
return false;
}
try {
Brew.PotionColor.valueOf(getColor());
Brew.PotionColor.fromString(getColor());
} catch (IllegalArgumentException e) {
P.p.errorLog("Invalid Color '" + color + "' in Recipe: " + getName(5));
return false;
@@ -263,7 +263,7 @@ public class BRecipe {
Brew brew = new Brew(uid, bIngredients, quality, distillruns, getAge(), wood, getName(5), false, false, true, 0);
Brew.PotionColor.valueOf(getColor()).colorBrew(potionMeta, potion, false);
Brew.PotionColor.fromString(getColor()).colorBrew(potionMeta, potion, false);
potionMeta.setDisplayName(P.p.color("&f" + getName(quality)));
if (!P.use1_14) {
// Before 1.14 the effects duration would strangely be only a quarter of what we tell it to be