Skip to content

Commit aff8d68

Browse files
committed
Merge branch 'newerest' into jitpack
2 parents 1b46b5d + 087d934 commit aff8d68

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/main/java/org/dimdev/riftloader/Main.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,13 @@ public static void runClientInstaller(boolean ask) {
117117
Files.copy(Main.class.getResourceAsStream("/profile.json"), versionJson.toPath(), StandardCopyOption.REPLACE_EXISTING);
118118

119119
File fakeJar = new File(minecraftFolder, "versions/1.13.2-rift-@VERSION@/1.13.2-rift-@[email protected]");
120-
File maybeRealJar = new File(minecraftFolder, "versions/1.13.2/1.13.2.jar");
121-
if (maybeRealJar.exists()) {
122-
Files.copy(maybeRealJar.toPath(), fakeJar.toPath(), StandardCopyOption.REPLACE_EXISTING);
123-
} else {
124-
fakeJar.createNewFile();
120+
if (!fakeJar.exists()) {
121+
File maybeRealJar = new File(minecraftFolder, "versions/1.13.2/1.13.2.jar");
122+
if (maybeRealJar.exists()) {
123+
Files.copy(maybeRealJar.toPath(), fakeJar.toPath(), StandardCopyOption.REPLACE_EXISTING);
124+
} else {
125+
fakeJar.createNewFile();
126+
}
125127
}
126128

127129
// Make mods directory

0 commit comments

Comments
 (0)