diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-04-27 06:23:28 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-26 22:23:28 +0200 |
| commit | b3ca5b1ffc698ede14d4e9d8ed2dc86711201de1 (patch) | |
| tree | b30f23c9745bfc66c721e7bfdb440a336142871a /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AntiCoopAdd.java | |
| parent | d3106bf41e099d329d9db330ab09e167519fce25 (diff) | |
| download | notenoughupdates-b3ca5b1ffc698ede14d4e9d8ed2dc86711201de1.tar.gz notenoughupdates-b3ca5b1ffc698ede14d4e9d8ed2dc86711201de1.tar.bz2 notenoughupdates-b3ca5b1ffc698ede14d4e9d8ed2dc86711201de1.zip | |
Fix Profile viewer issues with Turkish language (#1116)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AntiCoopAdd.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AntiCoopAdd.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AntiCoopAdd.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AntiCoopAdd.java index 40425560..78c7dd2e 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AntiCoopAdd.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AntiCoopAdd.java @@ -33,6 +33,8 @@ import net.minecraft.util.ChatComponentText; import net.minecraft.util.EnumChatFormatting; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; +import java.util.Locale; + @NEUAutoSubscribe public class AntiCoopAdd { @@ -72,7 +74,7 @@ public class AntiCoopAdd { public Boolean onPacketChatMessage(C01PacketChatMessage packet) { if (!NotEnoughUpdates.INSTANCE.config.misc.coopWarning) return false; - String message = packet.getMessage().toLowerCase(); + String message = packet.getMessage().toLowerCase(Locale.ROOT); if (message.startsWith("/hypixelcommand:coopadd")) { Utils.addChatMessage("§e[NEU] You just entered a malicious looking Co-op add command! If you truly want to add someone to your coop, type §e/coopadd <name>"); return true; |
