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
1 changed files with 1 additions and 1 deletions

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