Fixed positions still rendering when they should be hidden

This commit is contained in:
Sollace 2019-02-01 10:48:07 +02:00
parent d9e48ba603
commit 3d4f9c079b
2 changed files with 7 additions and 5 deletions

View file

@ -55,17 +55,17 @@ public class UPotion extends Potion {
@Override
public boolean shouldRender(PotionEffect effect) {
return isSilent;
return !isSilent;
}
@Override
public boolean shouldRenderInvText(PotionEffect effect) {
return isSilent;
return !isSilent;
}
@Override
public boolean shouldRenderHUD(PotionEffect effect) {
return isSilent;
return !isSilent;
}
@Override
@ -88,7 +88,7 @@ public class UPotion extends Potion {
}
}
return true;
return duration > 0;
}
@FunctionalInterface

View file

@ -205,4 +205,6 @@ advancements.adventure.bag_of_holding_2.title=Oops! I did it again
advancements.adventure.bag_of_holding_2.description=Die by the Bag of Holding a second time
advancements.adventure.bag_of_holding_3.title=Oh come on!
advancements.adventure.bag_of_holding_3.description=-_-
advancements.adventure.bag_of_holding_3.description=-_-
effect.food_poisoning=Food Poisoning