wrong offset in current selected version parser

This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2021-07-17 20:34:32 +07:00
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) {