diff --git a/decode.lua b/decode.lua index 725aa8e..9018609 100644 --- a/decode.lua +++ b/decode.lua @@ -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() \ No newline at end of file