v0.3.4a: fixed an issue where turkish devices were seeing string errors

this was due to the turkish non-dotted i being inserted when strings were being converted to lowercase, specifying the locale should fix this.
This commit is contained in:
Evan Debenham
2016-02-16 21:00:03 -05:00
parent 2c82a94ffc
commit 82b30e1228
2 changed files with 6 additions and 5 deletions
@@ -47,6 +47,7 @@ import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Locale;
public enum Rankings {
@@ -231,7 +232,7 @@ public enum Rankings {
//conversion logic for pre-0.3.4 saves
if (bundle.contains( REASON )){
String info = bundle.getString( REASON ).toLowerCase();
String info = bundle.getString( REASON ).toLowerCase(Locale.ENGLISH);
if (info.equals("obtained the amulet of yendor")) cause = Amulet.class;
else if (info.contains("goo")) cause = Goo.class;
else if (info.contains("tengu")) cause = Tengu.class;