mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -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){
|
||||
if(mLineList.isEmpty()) load();
|
||||
|
||||
String searchedLine=null;
|
||||
for(String line : mLineList){
|
||||
if(line.startsWith(key + ":"))
|
||||
return line.substring(line.indexOf(':') + 1);
|
||||
if(line.startsWith(key + ":")) {
|
||||
searchedLine = line;
|
||||
break;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
if(searchedLine != null) return searchedLine.substring(searchedLine.indexOf(':') + 1);
|
||||
else return null;
|
||||
}
|
||||
|
||||
public static void save() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user