Replace deprecated meta:set_string(*, nil) call

This commit is contained in:
Niklp 2024-06-29 16:52:32 +02:00
parent 2c9449b6e7
commit 235fa841dd
No known key found for this signature in database
GPG Key ID: 05D6F5035E66267A

View File

@ -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))