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
This commit is contained in:
NotMyFault 2021-07-05 11:08:07 +02:00
parent 8b8ac76852
commit bbee330f4f
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
2 changed files with 1 additions and 5 deletions

View File

@ -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("<gold>");
}
lore.addAll(preset.getDescription());
lore.add("</gold>");
plotInventory.setItem(
i,
new PlotItemStack(

View File

@ -456,7 +456,7 @@
"preset.preset_cannot_afford": "<prefix><red>You cannot afford that preset.</red>",
"preset.preset_invalid": "<prefix><red>Could not generate a pattern from that preset.</red>",
"preset.preset_lore_cost": "<prefix><gray>Cost: </gray><gold><cost></gold>",
"preset.preset_lore_component": "<prefix><gray>Component: </gray><gold><component></gold>",
"preset.preset_lore_component": "<gray>Component: </gray><gold><component></gold>",
"generic.generic_other": "<gray>other</gray>",
"generic.generic_merged": "<gray>merged</gray>",
"generic.generic_unowned": "<gray>unowned</gray>",