From 4a8f73dd1014c83ff8c52871860fa89569e474e8 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Mon, 7 Feb 2022 08:47:41 +0100 Subject: [PATCH] rename `mcl_util.drop_items_container_get` to `drop_items_from_meta_container` --- mods/CORE/mcl_util/init.lua | 2 +- mods/ITEMS/mcl_barrels/init.lua | 2 +- mods/ITEMS/mcl_chests/init.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/CORE/mcl_util/init.lua b/mods/CORE/mcl_util/init.lua index a9e8e73199..12645bbfac 100644 --- a/mods/CORE/mcl_util/init.lua +++ b/mods/CORE/mcl_util/init.lua @@ -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() diff --git a/mods/ITEMS/mcl_barrels/init.lua b/mods/ITEMS/mcl_barrels/init.lua index d30b4e0e0a..6304108abf 100644 --- a/mods/ITEMS/mcl_barrels/init.lua +++ b/mods/ITEMS/mcl_barrels/init.lua @@ -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) diff --git a/mods/ITEMS/mcl_chests/init.lua b/mods/ITEMS/mcl_chests/init.lua index aba91fe878..35712dfd16 100644 --- a/mods/ITEMS/mcl_chests/init.lua +++ b/mods/ITEMS/mcl_chests/init.lua @@ -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)