rename `mcl_util.drop_items_container_get` to `drop_items_from_meta_container`
parent
0988637ea1
commit
61e54ed617
|
@ -357,7 +357,7 @@ function mcl_util.get_first_occupied_inventory_slot(inventory, listname)
|
|||
return mcl_util.get_eligible_transfer_item_slot(inventory, listname)
|
||||
end
|
||||
|
||||
function mcl_util.drop_items_container_get(listname)
|
||||
function mcl_util.drop_items_from_meta_container(listname)
|
||||
return function(pos, oldnode, oldmetadata)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local meta2 = meta:to_table()
|
||||
|
|
|
@ -8,7 +8,7 @@ local C = minetest.colorize
|
|||
|
||||
local open_barrels = {}
|
||||
|
||||
local drop_content = mcl_util.drop_items_container_get("main")
|
||||
local drop_content = mcl_util.drop_items_from_meta_container("main")
|
||||
|
||||
local function on_blast(pos)
|
||||
local node = minetest.get_node(pos)
|
||||
|
|
|
@ -291,7 +291,7 @@ local function register_chest(basename, desc, longdesc, usagehelp, tt_help, tile
|
|||
end
|
||||
end
|
||||
|
||||
local drop_items_chest = mcl_util.drop_items_container_get("main")
|
||||
local drop_items_chest = mcl_util.drop_items_from_meta_container("main")
|
||||
|
||||
local function on_chest_blast(pos)
|
||||
local node = minetest.get_node(pos)
|
||||
|
|
Loading…
Reference in New Issue