Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazkii committed Jan 13, 2019
1 parent bf8c84e commit 695941a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/vazkii/instancesync/DownloadManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import vazkii.instancesync.Instance.Addon;
import vazkii.instancesync.Instance.Addon.AddonFile;
import vazkii.instancesync.Instance.Scan;

public class DownloadManager {

Expand Down Expand Up @@ -47,6 +48,9 @@ public void downloadInstance(Instance instance) {
System.out.println("Downloads were interrupted!");
e.printStackTrace();
}

for(Scan s : instance.cachedScans)
acceptableFilenames.add(s.folderName);

deleteRemovedMods();
}
Expand Down
9 changes: 8 additions & 1 deletion src/vazkii/instancesync/Instance.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
public class Instance {

public Addon[] installedAddons;

public Scan[] cachedScans;

public static class Addon {

public AddonFile installedFile;
Expand All @@ -27,4 +28,10 @@ public String toString() {

}

public static class Scan {

public String folderName;

}

}

0 comments on commit 695941a

Please sign in to comment.