Skip to content

Commit b5b604e

Browse files
committed
Bug fix: Fix issues with extra libraries
1 parent 75e934f commit b5b604e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/funkin/backend/assets/AssetsLibraryList.hx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ class AssetsLibraryList extends AssetLibrary {
6363
if (l is IModsAssetLibrary) {
6464
var lib = cast(l, IModsAssetLibrary);
6565
for(e in lib.getFiles(folder))
66-
content.push(e);
66+
if(!content.contains(e))
67+
content.push(e);
6768
}
6869
#end
6970
}
@@ -87,7 +88,8 @@ class AssetsLibraryList extends AssetLibrary {
8788
if (l is IModsAssetLibrary) {
8889
var lib = cast(l, IModsAssetLibrary);
8990
for(e in lib.getFolders(folder))
90-
content.push(e);
91+
if(!content.contains(e))
92+
content.push(e);
9193
}
9294
#end
9395
}

0 commit comments

Comments
 (0)