Fix language parsing for creating the java locale

This commit is contained in:
mezz 2018-05-19 20:28:10 -07:00
parent 3c4efa1ae7
commit f9b8c992ee

View file

@ -1,14 +1,15 @@
--- ../src-base/minecraft/net/minecraft/client/resources/Language.java
+++ ../src-work/minecraft/net/minecraft/client/resources/Language.java
@@ -17,6 +17,7 @@
@@ -17,6 +17,8 @@
this.field_135037_b = p_i1303_2_;
this.field_135038_c = p_i1303_3_;
this.field_135036_d = p_i1303_4_;
+ this.javaLocale = new java.util.Locale(field_135039_a, field_135037_b);
+ String[] splitLangCode = field_135039_a.split("_", 2);
+ this.javaLocale = new java.util.Locale(splitLangCode[0], splitLangCode[1]);
}
public String func_135034_a()
@@ -55,4 +56,8 @@
@@ -55,4 +57,8 @@
{
return this.field_135039_a.compareTo(p_compareTo_1_.field_135039_a);
}