mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2024-12-26 10:40:28 +01:00
Replace deprecated meta:set_string(*, nil)
call
This commit is contained in:
parent
2c9449b6e7
commit
235fa841dd
2
bags.lua
2
bags.lua
@ -144,7 +144,7 @@ local function save_bags_metadata(player, bags_inv)
|
||||
end
|
||||
local meta = player:get_meta()
|
||||
if is_empty then
|
||||
meta:set_string("unified_inventory:bags", nil)
|
||||
meta:set_string("unified_inventory:bags", "")
|
||||
else
|
||||
meta:set_string("unified_inventory:bags",
|
||||
minetest.serialize(bags))
|
||||
|
Loading…
Reference in New Issue
Block a user