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
|
||||
if datafile then
|
||||
datafile:write(minetest.serialize(translated_rune_data))
|
||||
end
|
||||
io.close(datafile)
|
||||
end
|
||||
minetest.log("action", "[runes] Rune inventory saved for player " .. name)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user