mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed positions still rendering when they should be hidden
This commit is contained in:
parent
d9e48ba603
commit
3d4f9c079b
2 changed files with 7 additions and 5 deletions
|
@ -55,17 +55,17 @@ public class UPotion extends Potion {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean shouldRender(PotionEffect effect) {
|
public boolean shouldRender(PotionEffect effect) {
|
||||||
return isSilent;
|
return !isSilent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean shouldRenderInvText(PotionEffect effect) {
|
public boolean shouldRenderInvText(PotionEffect effect) {
|
||||||
return isSilent;
|
return !isSilent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean shouldRenderHUD(PotionEffect effect) {
|
public boolean shouldRenderHUD(PotionEffect effect) {
|
||||||
return isSilent;
|
return !isSilent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -88,7 +88,7 @@ public class UPotion extends Potion {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return duration > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@FunctionalInterface
|
@FunctionalInterface
|
||||||
|
|
|
@ -206,3 +206,5 @@ advancements.adventure.bag_of_holding_2.description=Die by the Bag of Holding a
|
||||||
|
|
||||||
advancements.adventure.bag_of_holding_3.title=Oh come on!
|
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
|
Loading…
Reference in a new issue