From 4fe793d29f4ee52d72a7f1f752093d925e95d8da Mon Sep 17 00:00:00 2001 From: teknomunk Date: Thu, 8 Aug 2024 07:01:26 -0500 Subject: [PATCH] Expand mcl_util.hopper_pull() to mcl_util.hopper_pull_to_inventory() --- mods/ITEMS/mcl_hoppers/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_hoppers/init.lua b/mods/ITEMS/mcl_hoppers/init.lua index 07dd52089..995703e40 100644 --- a/mods/ITEMS/mcl_hoppers/init.lua +++ b/mods/ITEMS/mcl_hoppers/init.lua @@ -54,7 +54,7 @@ local function straight_hopper_act(pos, node, active_object_count, active_count_ mcl_util.hopper_push(pos, dst_pos) local src_pos = vector.offset(pos, 0, 1, 0) - mcl_util.hopper_pull(pos, src_pos) + mcl_util.hopper_pull_to_inventory(minetest.get_meta(pos):get_inventory(), "main", src_pos, pos) end local function bent_hopper_act(pos, node, active_object_count, active_object_count_wider) @@ -93,7 +93,7 @@ local function bent_hopper_act(pos, node, active_object_count, active_object_cou end local src_pos = vector.offset(pos, 0, 1, 0) - mcl_util.hopper_pull(pos, src_pos) + mcl_util.hopper_pull_to_inventory(inv, "main", src_pos, pos) end --[[