From de067103cb8e1a9d40f5ad896b5afbf2712a9662 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 27 Feb 2023 20:27:30 +0100 Subject: [PATCH] Hotfix AttributeRemoveCommand Signed-off-by: yoyosource --- .../features/attributescopy/AttributeRemoveCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/attributescopy/AttributeRemoveCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/attributescopy/AttributeRemoveCommand.java index 902d7c59..4f1bdd92 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/attributescopy/AttributeRemoveCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/attributescopy/AttributeRemoveCommand.java @@ -99,13 +99,15 @@ public class AttributeRemoveCommand extends SWCommand { return lore.stream() .skip(1) .map(s1 -> s1.substring(6)) + .map(s1 -> s1.replace('§', '&')) .map(s1 -> s1.replace(' ', '_')) .collect(Collectors.toList()); } @Override public String map(CommandSender commandSender, PreviousArguments previousArguments, String s) { - return s.replace('_', ' '); + return s.replace('_', ' ') + .replace('&', '§'); } }; }