From bbee330f4fc3f2160cd3c95818a36a99ad27159f Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Mon, 5 Jul 2021 11:08:07 +0200 Subject: [PATCH] Don't append color codes to component lore - Color codes are defined thru the file. Adding these here will clash with any other codes you already use - Remove prefix from component GUI --- .../plotsquared/core/components/ComponentPresetManager.java | 4 ---- Core/src/main/resources/lang/messages_en.json | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java b/Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java index fa4ab0030..81f0b56fb 100644 --- a/Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java +++ b/Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java @@ -254,11 +254,7 @@ public class ComponentPresetManager { Template.of("prefix", TranslatableCaption.of("core.prefix").getComponent(player)) ))); lore.removeIf(String::isEmpty); - if (!lore.isEmpty()) { - lore.add(""); - } lore.addAll(preset.getDescription()); - lore.add(""); plotInventory.setItem( i, new PlotItemStack( diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json index 5d7e8df65..5cc6251c0 100644 --- a/Core/src/main/resources/lang/messages_en.json +++ b/Core/src/main/resources/lang/messages_en.json @@ -456,7 +456,7 @@ "preset.preset_cannot_afford": "You cannot afford that preset.", "preset.preset_invalid": "Could not generate a pattern from that preset.", "preset.preset_lore_cost": "Cost: ", - "preset.preset_lore_component": "Component: ", + "preset.preset_lore_component": "Component: ", "generic.generic_other": "other", "generic.generic_merged": "merged", "generic.generic_unowned": "unowned",