Added quest and currentObject deserialization
parent
be3fe3bc25
commit
be66003009
|
@ -59,4 +59,11 @@ if(file ~= nil) then
|
||||||
end
|
end
|
||||||
end
|
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()
|
file:close()
|
Loading…
Reference in New Issue