Skip to content
Snippets Groups Projects
Commit 8aa4bc6f authored by DarkGod's avatar DarkGod
Browse files

Added loadIfNot to entities environment to only load said list if it has not yet been

parent 3259c0fb
No related branches found
No related tags found
No related merge requests found
......@@ -1206,6 +1206,10 @@ function _M:loadList(file, no_default, res, mod, loaded)
load = function(f, new_mod)
self:loadList(f, no_default, res, new_mod or mod, loaded)
end,
loadIfNot = function(f, new_mod)
if loaded[f] then return end
self:loadList(f, no_default, res, new_mod or mod, loaded)
end,
loadList = function(f, new_mod, list, loaded)
return self:loadList(f, no_default, list, new_mod or mod, loaded)
end,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment