wrong offset in current selected version parser
This commit is contained in:
1 parent
322870f8a3
commit
1b606997e1
1 file changed
+1
-1
@@ -58,7 +58,7 @@ public class PLaunchApp {
|
||||
|
||||
try {
|
||||
String plistContent = Tools.read(Tools.DIR_APP_DATA + "/launcher_preferences.plist");
|
||||
plistContent = plistContent.substring(plistContent.indexOf("<key>selected_version</key>") + 26);
|
||||
plistContent = plistContent.substring(plistContent.indexOf("<key>selected_version</key>") + 27);
|
||||
mcver = plistContent.replace("<string>", "")
|
||||
.substring(0, plistContent.indexOf("</string>")).trim();
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in new issue
Block a user