From bd7368a412861116418bd86e9e1b014aec5e8d3c Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sun, 28 Apr 2024 19:14:26 +0200 Subject: [PATCH] Fix bug with shop and injectors --- basic_machines/foreign_nodes.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/basic_machines/foreign_nodes.lua b/basic_machines/foreign_nodes.lua index c9799d3..9d909c7 100644 --- a/basic_machines/foreign_nodes.lua +++ b/basic_machines/foreign_nodes.lua @@ -81,7 +81,11 @@ techage.register_node({"shop:shop"}, { on_inv_request = function(pos, in_dir, access_type) local meta = minetest.get_meta(pos) if is_owner(pos, meta) then - return meta:get_inventory(), "main" + if access_type == "push" then + return meta:get_inventory(), "stock" + elseif access_type == "pull" then + return meta:get_inventory(), "register" + end end end, on_pull_item = function(pos, in_dir, num)