Fix preloading assets in plugin (#819)

`gatherAssetUrlsRecursive` now returns asset URLs deeper than one layer.
This commit is contained in:
Vee
2023-12-04 11:02:25 -05:00
committed by GitHub
parent b43b45be8f
commit 23327cb3ef

View File

@@ -13,7 +13,7 @@ function gatherAssetUrlsRecursive(currentTable, currentUrls)
if typeof(value) == "string" then
table.insert(currentUrls, value)
elseif typeof(value) == "table" then
gatherAssetUrlsRecursive(value)
gatherAssetUrlsRecursive(value, currentUrls)
end
end