Fix Language.javaLocale parsing (#6862)

This commit is contained in:
Matthew Messinger 2020-06-29 19:37:21 -04:00 committed by GitHub
parent 5db6f158f8
commit 20d231bbed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {