Added quest and currentObject deserialization

master
Austin Shenk 2013-02-05 12:06:45 -05:00
parent be3fe3bc25
commit be66003009
1 changed files with 7 additions and 0 deletions

View File

@ -59,4 +59,11 @@ if(file ~= nil) then
end
end
end
file:close()
file = io.open(minetest.get_worldpath().."/adventures_quests", "r")
if(file ~= nil) then
adventures.quests = minetest.deserialize(file:read("*l"))
adventures.currentObjectives = minetest.deserialize(file:read("*l"))
end
file:close()