Skip to content

Commit 256581f

Browse files
sebampuerohyperdefined
authored andcommitted
fix: use char instead of str
1 parent 818f2e7 commit 256581f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/lol/hyper/toolstats/tools/config/ConfigTools.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ public Component formatLore(String configName, String placeHolder, Object value)
136136

137137
/**
138138
* Format a string with several placeholders to be ready for lore usage.
139-
* @param configName The message to use.
139+
*
140+
* @param configName The message to use.
140141
* @param placeHoldersValues Map containing placeholders names as keys and values.
141142
* @return Formatted string, null if the configName doesn't exist.
142143
*/
@@ -161,13 +162,13 @@ public Component formatLoreMultiplePlaceholders(String configName, Map<String, S
161162
while (matcher.find()) {
162163
String placeholder = matcher.group(1);
163164
String unit = matcher.group(2);
164-
165+
165166
result.append(lore, lastEnd, matcher.start());
166-
167+
167168
if (placeHoldersValues.containsKey(placeholder)) {
168169
result.append(placeHoldersValues.get(placeholder)).append(unit).append(" ");
169170
}
170-
171+
171172
// Update lastEnd to end of the match
172173
lastEnd = matcher.end();
173174
}

0 commit comments

Comments
 (0)