mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 14:50:56 +00:00
fix addon check on fresh install
This commit is contained in:
@@ -220,6 +220,7 @@ public abstract class AbstractPlatform implements Platform {
|
|||||||
Path data = getDataFolder().toPath();
|
Path data = getDataFolder().toPath();
|
||||||
|
|
||||||
Path addonsPath = data.resolve("addons");
|
Path addonsPath = data.resolve("addons");
|
||||||
|
Files.createDirectories(addonsPath);
|
||||||
Set<Pair<Path, String>> paths = Files
|
Set<Pair<Path, String>> paths = Files
|
||||||
.walk(addonsPath)
|
.walk(addonsPath)
|
||||||
.map(path -> Pair.of(path, data.relativize(path).toString()))
|
.map(path -> Pair.of(path, data.relativize(path).toString()))
|
||||||
|
|||||||
Reference in New Issue
Block a user