mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 00:21:07 +01:00
rename mcl_util.drop_items_container_get
to drop_items_from_meta_container
This commit is contained in:
parent
3c2182a677
commit
4a8f73dd10
3 changed files with 3 additions and 3 deletions
|
@ -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 a new issue