Skip to content

Commit

Permalink
Replace deprecated meta:set_string(*, nil) call
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklp09 committed Jun 29, 2024
1 parent 2c9449b commit 235fa84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 235fa84

Please sign in to comment.