mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2024-12-28 11:40:24 +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
|
end
|
||||||
local meta = player:get_meta()
|
local meta = player:get_meta()
|
||||||
if is_empty then
|
if is_empty then
|
||||||
meta:set_string("unified_inventory:bags", nil)
|
meta:set_string("unified_inventory:bags", "")
|
||||||
else
|
else
|
||||||
meta:set_string("unified_inventory:bags",
|
meta:set_string("unified_inventory:bags",
|
||||||
minetest.serialize(bags))
|
minetest.serialize(bags))
|
||||||
|
Loading…
Reference in New Issue
Block a user