Fixes to the Brewing Stand for distilling

This commit is contained in:
Sn0wStorm
2018-10-31 20:22:48 +01:00
parent db61e27fa3
commit 0ed69b7125
4 changed files with 26 additions and 10 deletions
+3 -1
View File
@@ -727,10 +727,12 @@ public class Brew {
public void colorBrew(PotionMeta meta, ItemStack potion, boolean destillable) {
if (P.use1_9) {
meta.setBasePotionData(new PotionData(getType()));
meta.addItemFlags(ItemFlag.HIDE_POTION_EFFECTS);
if (P.use1_12) {
// BasePotionData was only used for the Color, so starting with 1.12 we can use setColor instead
meta.setColor(getColor());
} else {
meta.setBasePotionData(new PotionData(getType()));
}
} else {
potion.setDurability(getColorId(destillable));