mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 16:16:04 -04:00
Update MCOptionUtils.java
This commit is contained in:
parent
2adc410ef8
commit
b601dc3ad5
@ -38,12 +38,15 @@ public class MCOptionUtils
|
|||||||
|
|
||||||
public static String get(String key){
|
public static String get(String key){
|
||||||
if(mLineList.isEmpty()) load();
|
if(mLineList.isEmpty()) load();
|
||||||
|
String searchedLine=null;
|
||||||
for(String line : mLineList){
|
for(String line : mLineList){
|
||||||
if(line.startsWith(key + ":"))
|
if(line.startsWith(key + ":")) {
|
||||||
return line.substring(line.indexOf(':') + 1);
|
searchedLine = line;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
if(searchedLine != null) return searchedLine.substring(searchedLine.indexOf(':') + 1);
|
||||||
|
else return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void save() {
|
public static void save() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user