Convert pre 1.11 Brews (cosmetic)

This commit is contained in:
Sn0wStorm
2019-11-15 14:43:26 +01:00
parent 036657747c
commit d0198c9f04
4 changed files with 48 additions and 11 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ import java.util.List;
public class BRecipe {
public static List<BRecipe> recipes = new ArrayList<>();
private static List<BRecipe> recipes = new ArrayList<>();
public static int numConfigRecipes; // The number of recipes in the list that are from config
private String[] name;
@@ -59,6 +59,7 @@ public class PotionColor {
@SuppressWarnings("deprecation")
public void colorBrew(PotionMeta meta, ItemStack potion, boolean destillable) {
if (P.use1_9) {
// We need to Hide Potion Effects even in 1.12, as it would otherwise show "No Effects"
meta.addItemFlags(ItemFlag.HIDE_POTION_EFFECTS);
if (P.use1_11) {
// BasePotionData was only used for the Color, so starting with 1.12 we can use setColor instead