changelog

This commit is contained in:
Flemmli97 2021-06-13 02:03:04 +02:00
parent 23a4675135
commit 384e511cf4
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,9 @@ Flan 1.5.0
- Add NOHUNGER permission: Disables hunger in claims
Default global value is ALLFALSE so disabled.
- Fix resizing claims of other players not using their claim blocks
- Add ability to add potion effects to claims.
That claim will then apply that effect to any player inside the claim
Specify potions with <id;amplifier>
Flan 1.4.2
======================

View File

@ -80,7 +80,7 @@ public class PotionEditScreenHandler extends ServerOnlyScreenHandler {
ItemStack group = new ItemStack(Items.POTION);
TranslatableText txt = new TranslatableText(effect.getTranslationKey());
group.getOrCreateTag().putString("FlanEffect", CrossPlatformStuff.stringFromEffect(effect));
group.setCustomName(txt.setStyle(txt.getStyle().withFormatting(Formatting.DARK_BLUE)).append(ServerScreenHelper.coloredGuiText("-" + potions.get(effect), Formatting.DARK_BLUE)));
group.setCustomName(txt.setStyle(txt.getStyle().withItalic(false).withFormatting(Formatting.DARK_BLUE)).append(ServerScreenHelper.coloredGuiText("-" + potions.get(effect), Formatting.DARK_BLUE)));
inv.setStack(i, group);
}
}