Merge pull request #814 from PlaceholderAPI/fix/666-lowercasing

fix(replacer): Stop lowercasing replacements
This commit is contained in:
PiggyPiglet 2022-03-13 14:35:34 +08:00 committed by GitHub
commit fadf14a316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ public final class CharsReplacer implements Replacer {
final PlaceholderExpansion placeholder = lookup.apply(lowercaseIdentifierString); final PlaceholderExpansion placeholder = lookup.apply(lowercaseIdentifierString);
if (placeholder == null) { if (placeholder == null) {
builder.append(closure.head).append(lowercaseIdentifierString); builder.append(closure.head).append(identifierString);
if (identified) { if (identified) {
builder.append('_'); builder.append('_');
@ -118,7 +118,7 @@ public final class CharsReplacer implements Replacer {
final String replacement = placeholder.onRequest(player, parametersString); final String replacement = placeholder.onRequest(player, parametersString);
if (replacement == null) { if (replacement == null) {
builder.append(closure.head).append(lowercaseIdentifierString); builder.append(closure.head).append(identifierString);
if (identified) { if (identified) {
builder.append('_'); builder.append('_');