diff --git a/technic/tools/cans.lua b/technic/tools/cans.lua index 843077a6..1bde1b03 100644 --- a/technic/tools/cans.lua +++ b/technic/tools/cans.lua @@ -14,10 +14,10 @@ local function set_can_wear(itemstack, level, max_level) end local function get_can_level(itemstack) - if itemstack:get_metadata() == "" then + if itemstack:get_meta():get_string("") == "" then return 0 else - return tonumber(itemstack:get_metadata()) + return tonumber(itemstack:get_meta():get_string("")) end end diff --git a/technic_chests/digilines.lua b/technic_chests/digilines.lua index 343baf09..8fb2b928 100644 --- a/technic_chests/digilines.lua +++ b/technic_chests/digilines.lua @@ -19,7 +19,7 @@ local function item_matches(item, stack) and (not item.wear or (type(item.wear) == "number" and wear == item.wear) or (type(item.wear) == "table" and (not item.wear[1] or (type(item.wear[1]) == "number" and item.wear[1] <= wear)) and (not item.wear[2] or (type(item.wear[2]) == "number" and wear < item.wear[2])))) - and (not item.metadata or (type(item.metadata) == "string" and stack:get_metadata() == item.metadata)) + and (not item.metadata or (type(item.metadata) == "string" and stack:get_meta():get_string("") == item.metadata)) end function technic.chests.digiline_effector(pos, _, channel, msg) diff --git a/technic_chests/inventory.lua b/technic_chests/inventory.lua index 46da9cab..7a6f845f 100644 --- a/technic_chests/inventory.lua +++ b/technic_chests/inventory.lua @@ -20,7 +20,7 @@ function technic.chests.sort_inv(inv, mode) if not stack:is_empty() then local name = stack:get_name() local wear = stack:get_wear() - local meta = stack:get_metadata() + local meta = stack:get_meta():get_string("") local count = stack:get_count() local def = minetest.registered_items[name] local itemtype = (def and itemtypes[def.type]) and def.type or "none"