mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2024-11-19 22:03:43 +01:00
Fix bags backwards compatibility breakage since 4403b69 (#167)
This commit is contained in:
parent
fbbf786caf
commit
d1a4396fbe
2
bags.lua
2
bags.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user