9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2026-01-01 05:06:43 +00:00
This commit is contained in:
Xiao-MoMi
2022-09-20 20:54:52 +08:00
parent 96640c3fcd
commit 72a68edc3a
4 changed files with 11 additions and 8 deletions

View File

@@ -44,12 +44,7 @@ public class TextCache {
}
private void analyze(String value) {
List<String> placeholdersOwner = new ArrayList<>();
for (String identifier : CustomNameplates.instance.getPlaceholderManager().detectPlaceholders(value)) {
if (!identifier.startsWith("%rel_")) {
placeholdersOwner.add(identifier);
}
}
List<String> placeholdersOwner = new ArrayList<>(CustomNameplates.instance.getPlaceholderManager().detectPlaceholders(value));
String origin = value;
for (String placeholder : placeholdersOwner) {
origin = origin.replace(placeholder, "%s");