From 23327cb3ef25e47b8e20ebb91560721d7ba56301 Mon Sep 17 00:00:00 2001 From: Vee <106542812+cozywitchcraft@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:02:25 -0500 Subject: [PATCH] Fix preloading assets in plugin (#819) `gatherAssetUrlsRecursive` now returns asset URLs deeper than one layer. --- plugin/src/preloadAssets.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/preloadAssets.lua b/plugin/src/preloadAssets.lua index c37ca032a..1cf9b2d8a 100644 --- a/plugin/src/preloadAssets.lua +++ b/plugin/src/preloadAssets.lua @@ -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