forked from MineClone5/MineClone5
Update Fork #9
|
@ -611,6 +611,8 @@ do
|
|||
io.close(file)
|
||||
if string then
|
||||
local savetable = minetest.deserialize(string)
|
||||
local players_stored_data = savetable and savetable.players_stored_data
|
||||
if players_stored_data then
|
||||
for name, players_stored_data in pairs(savetable.players_stored_data) do
|
||||
doc.data.players[name] = {}
|
||||
doc.data.players[name].stored_data = players_stored_data
|
||||
|
@ -619,6 +621,7 @@ do
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function doc.save_to_file()
|
||||
local savetable = {}
|
||||
|
|
Loading…
Reference in New Issue