mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Fixed crash when saving runes' inventory failed
This commit is contained in:
parent
3f10102866
commit
1e62709268
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user