Update PLaunchApp.java
This commit is contained in:
1 parent
d0084e91c7
commit
69e8f38894
1 file changed
+1
-1
@@ -60,7 +60,7 @@ public class PLaunchApp {
|
||||
String plistContent = Tools.read(Tools.DIR_APP_DATA + "/launcher_preferences.plist");
|
||||
plistContent = plistContent.substring(plistContent.indexOf("<key>selected_version</key>") + 27);
|
||||
mcver = plistContent.replace("<string>", "")
|
||||
.substring(0, plistContent.indexOf("</string>")).trim();
|
||||
.substring(0, plistContent.indexOf("</")).trim();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
UIKit.updateProgressSafe(0, "Could not parse plist, defaulting to Minecraft 1.16.5");
|
||||
|
||||
Reference in new issue
Block a user