1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

Fixed crash when saving runes' inventory failed

This commit is contained in:
LeMagnesium 2015-05-24 13:45:10 +02:00
parent 3f10102866
commit 1e62709268

View File

@ -282,8 +282,8 @@ runes.functions.save_detached_inventory = function(player)
end end
if datafile then if datafile then
datafile:write(minetest.serialize(translated_rune_data)) datafile:write(minetest.serialize(translated_rune_data))
io.close(datafile)
end end
io.close(datafile)
minetest.log("action", "[runes] Rune inventory saved for player " .. name) minetest.log("action", "[runes] Rune inventory saved for player " .. name)
end end