rename `mcl_util.drop_items_container_get` to `drop_items_from_meta_container`

This commit is contained in:
AFCMS 2022-02-07 08:47:41 +01:00
parent 0988637ea1
commit 61e54ed617
No known key found for this signature in database
GPG Key ID: 8720389A25B652E3
3 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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)

View File

@ -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)