diff --git a/Changelog.txt b/Changelog.txt index 043272b..fd751cd 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -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 Flan 1.4.2 ====================== diff --git a/common/src/main/java/io/github/flemmli97/flan/gui/PotionEditScreenHandler.java b/common/src/main/java/io/github/flemmli97/flan/gui/PotionEditScreenHandler.java index abfc17b..632b2bf 100644 --- a/common/src/main/java/io/github/flemmli97/flan/gui/PotionEditScreenHandler.java +++ b/common/src/main/java/io/github/flemmli97/flan/gui/PotionEditScreenHandler.java @@ -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); } }