Fix for skybox.add function not working. (#8)

When using the skybox.add function, worlds fail to load with the following error:
/skybox/init.lua:90: attempt to call field 'add' (a nil value)

Using table.insert instead allows this to work without any added dependencies.
This commit is contained in:
Droog71 2022-01-02 14:38:19 -05:00 committed by GitHub
parent 290bc5f7a5
commit c500257c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ skybox.clear = function(player)
end end
skybox.add = function(def) skybox.add = function(def)
table.add(skies, def) table.insert(skies, def)
end end
skybox.get_skies = function() skybox.get_skies = function()