Fix Language.javaLocale parsing (#6862)
This commit is contained in:
parent
5db6f158f8
commit
20d231bbed
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
this.field_135037_b = p_i1303_2_;
|
this.field_135037_b = p_i1303_2_;
|
||||||
this.field_135038_c = p_i1303_3_;
|
this.field_135038_c = p_i1303_3_;
|
||||||
this.field_135036_d = p_i1303_4_;
|
this.field_135036_d = p_i1303_4_;
|
||||||
+ String[] splitLangCode = field_135038_c.split("_", 2);
|
+ String[] splitLangCode = field_135039_a.split("_", 2);
|
||||||
+ if (splitLangCode.length == 1) { // Vanilla has some languages without underscores
|
+ if (splitLangCode.length == 1) { // Vanilla has some languages without underscores
|
||||||
+ this.javaLocale = new java.util.Locale(field_135039_a);
|
+ this.javaLocale = new java.util.Locale(field_135039_a);
|
||||||
+ } else {
|
+ } else {
|
||||||
|
|
Loading…
Reference in a new issue