From 3d4f9c079ba015ee736439553c8411320fecf1d8 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 1 Feb 2019 10:48:07 +0200 Subject: [PATCH] Fixed positions still rendering when they should be hidden --- .../java/com/minelittlepony/unicopia/potion/UPotion.java | 8 ++++---- src/main/resources/assets/unicopia/lang/en_US.lang | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/potion/UPotion.java b/src/main/java/com/minelittlepony/unicopia/potion/UPotion.java index c899fedb..5d07cc67 100644 --- a/src/main/java/com/minelittlepony/unicopia/potion/UPotion.java +++ b/src/main/java/com/minelittlepony/unicopia/potion/UPotion.java @@ -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 diff --git a/src/main/resources/assets/unicopia/lang/en_US.lang b/src/main/resources/assets/unicopia/lang/en_US.lang index 27bdd8f4..8644cb4f 100644 --- a/src/main/resources/assets/unicopia/lang/en_US.lang +++ b/src/main/resources/assets/unicopia/lang/en_US.lang @@ -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=-_- \ No newline at end of file +advancements.adventure.bag_of_holding_3.description=-_- + +effect.food_poisoning=Food Poisoning \ No newline at end of file