]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/commitdiff
Fix for new launcher
authorirtimaled <irtimaled@gmail.com>
Thu, 4 Jul 2019 03:54:03 +0000 (20:54 -0700)
committerirtimaled <irtimaled@gmail.com>
Thu, 4 Jul 2019 03:54:03 +0000 (20:54 -0700)
src/main/java/com/irtimaled/bbor/install/Installer.java

index 59a89311b712afd084e59e0c5a5b4b96771e51d9..d0f6a210b3e431821ed8f821d3e9e87fe7b5acf5 100644 (file)
@@ -40,7 +40,7 @@ public class Installer {
 
                     String date = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
 
-                    contents = contents.replace("\n  \"profiles\": {", "\n  \"profiles\": {\n" +
+                    contents = contents.replaceAll("(\n\\s*\"profiles\"\\s*:\\s*\\{)", "$1\n" +
                             "    " + identifier + ": {\n" +
                             "      \"name\": \"Bounding Box Outline Reloaded\",\n" +
                             "      \"type\": \"custom\",\n" +