mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Misc fixes
This commit is contained in:
1 parent
0f8625adff
commit
898e15a221
13 files changed
+64
-38
No files matched your search
@@ -144,7 +144,7 @@ public class ItemBrewBase extends ItemMod implements IBrewItem {
|
||||
public void addInformation(ItemStack stack, World world, List<ITextComponent> list, ITooltipFlag flags) {
|
||||
Brew brew = getBrew(stack);
|
||||
for(EffectInstance effect : brew.getPotionEffects(stack)) {
|
||||
TextFormatting format = effect.getPotion().isBadEffect() ? TextFormatting.RED : TextFormatting.GRAY;
|
||||
TextFormatting format = !effect.getPotion().isBeneficial() ? TextFormatting.RED : TextFormatting.GRAY;
|
||||
ITextComponent cmp = new TranslationTextComponent(effect.getEffectName());
|
||||
if(effect.getAmplifier() > 0) {
|
||||
cmp.appendText(" ");
|
||||
|
||||
Reference in new issue
Block a user