Skip to content
Snippets Groups Projects
Commit 571cf997 authored by DarkGod's avatar DarkGod
Browse files

allow loading old save data

parent cd1cf48b
No related branches found
No related tags found
No related merge requests found
......@@ -367,7 +367,8 @@ function _M:saveEntity(e, no_dialog)
end
local function resolveSelf(o, base, allow_object)
if o.__ATOMIC and not allow_object then return end
-- we check both to ensure compatibility with old saves; including world.teaw which is vital to not make everything explode
if o.__ATOMIC or o.__CLASSNAME and not allow_object then return end
local change = {}
for k, e in pairs(o) do
......
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