Fix bags backwards compatibility breakage since 4403b69 (#167)

This commit is contained in:
SmallJoker 2021-03-09 11:12:50 +01:00 committed by GitHub
parent fbbf786caf
commit d1a4396fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -135,7 +135,7 @@ end
local function load_bags_metadata(player, bags_inv)
local player_inv = player:get_inventory()
local meta = player:get_meta()
local bags_meta = meta:get_string("unified_inventory:bags")
local bags_meta = meta:get("unified_inventory:bags")
local bags = bags_meta and minetest.deserialize(bags_meta) or {}
local dirty_meta = false
if not bags_meta then