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