1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 01:30:38 +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
if datafile then
datafile:write(minetest.serialize(translated_rune_data))
io.close(datafile)
end
io.close(datafile)
minetest.log("action", "[runes] Rune inventory saved for player " .. name)
end