mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2024-09-28 03:57:28 +02:00
Dont add effects in 1.9
This commit is contained in:
parent
82223aafe1
commit
bd6742a599
@ -578,7 +578,7 @@ public class Brew {
|
|||||||
|
|
||||||
// Adds the Effect names to the Items description
|
// Adds the Effect names to the Items description
|
||||||
public static void addOrReplaceEffects(PotionMeta meta, ArrayList<BEffect> effects, int quality) {
|
public static void addOrReplaceEffects(PotionMeta meta, ArrayList<BEffect> effects, int quality) {
|
||||||
if (effects != null) {
|
if (!P.use1_9 && effects != null) {
|
||||||
for (BEffect effect : effects) {
|
for (BEffect effect : effects) {
|
||||||
if (!effect.isHidden()) {
|
if (!effect.isHidden()) {
|
||||||
effect.writeInto(meta, quality);
|
effect.writeInto(meta, quality);
|
||||||
|
@ -240,6 +240,7 @@ public class InventoryListener implements Listener {
|
|||||||
if (P.use1_9 && !potion.hasItemFlag(ItemFlag.HIDE_POTION_EFFECTS)) {
|
if (P.use1_9 && !potion.hasItemFlag(ItemFlag.HIDE_POTION_EFFECTS)) {
|
||||||
BRecipe recipe = brew.getCurrentRecipe();
|
BRecipe recipe = brew.getCurrentRecipe();
|
||||||
if (recipe != null) {
|
if (recipe != null) {
|
||||||
|
Brew.removeEffects(potion);
|
||||||
Brew.PotionColor.valueOf(recipe.getColor()).colorBrew(potion, item, brew.canDistill());
|
Brew.PotionColor.valueOf(recipe.getColor()).colorBrew(potion, item, brew.canDistill());
|
||||||
item.setItemMeta(potion);
|
item.setItemMeta(potion);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user