mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-10 18:57:39 +07:00
Fix player.locale to be default (#4768)
* fix player.locale == default * Update NetClient.java
This commit is contained in:
parent
830eb86a0f
commit
ad2a18f929
@ -26,6 +26,7 @@ import mindustry.world.*;
|
||||
import mindustry.world.modules.*;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
import java.util.zip.*;
|
||||
|
||||
import static mindustry.Vars.*;
|
||||
@ -73,9 +74,14 @@ public class NetClient implements ApplicationListener{
|
||||
disconnectQuietly();
|
||||
});
|
||||
|
||||
String locale = Core.settings.getString("locale");
|
||||
if(locale.equals("default")){
|
||||
locale = Locale.getDefault().toString();
|
||||
}
|
||||
|
||||
ConnectPacket c = new ConnectPacket();
|
||||
c.name = player.name;
|
||||
c.locale = Core.settings.getString("locale");
|
||||
c.locale = locale;
|
||||
c.mods = mods.getModStrings();
|
||||
c.mobile = mobile;
|
||||
c.versionType = Version.type;
|
||||
|
@ -196,7 +196,7 @@ public class NetServer implements ApplicationListener{
|
||||
}
|
||||
|
||||
if(packet.locale == null){
|
||||
packet.locale = "en_US";
|
||||
packet.locale = "en";
|
||||
}
|
||||
|
||||
String ip = con.address;
|
||||
|
Loading…
Reference in New Issue
Block a user