Don't return all lower case
This commit is contained in:
parent
d1d40775d2
commit
0d4692c2af
@ -9,6 +9,7 @@ import java.util.Map.Entry;
|
||||
import com.google.gson.GsonBuilder;
|
||||
import com.mojang.authlib.GameProfile;
|
||||
import me.libraryaddict.disguise.utilities.json.SerializerGameProfile;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.bukkit.Art;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
|
@ -126,10 +126,10 @@ public enum TranslateType {
|
||||
if (translated == null)
|
||||
return null;
|
||||
|
||||
translated = translated.toLowerCase();
|
||||
String lowerCase = translated.toLowerCase();
|
||||
|
||||
for (Map.Entry<String, String> entry : this.translated.entrySet()) {
|
||||
if (!Objects.equals(entry.getValue().toLowerCase(), translated))
|
||||
if (!Objects.equals(entry.getValue().toLowerCase(), lowerCase))
|
||||
continue;
|
||||
|
||||
return entry.getKey();
|
||||
|
Loading…
Reference in New Issue
Block a user