Skip to content

Commit

Permalink
Fix crashing on first mod download
Browse files Browse the repository at this point in the history
  • Loading branch information
thejudge156 committed Aug 13, 2023
1 parent d2f686c commit 0abf241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/main/java/pojlib/instance/MinecraftInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void updateOrDownloadsMods() {
name.add(object.get("slug").getAsString());
}

if(mods.exists()) {
if(modsOld.exists()) {
InputStream stream = Files.newInputStream(mods.toPath());
int size = stream.available();
byte[] buffer = new byte[size];
Expand Down

0 comments on commit 0abf241

Please sign in to comment.