From d66cbc21642df96ca69f00624bd8d723313e416e Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Tue, 19 Sep 2017 00:24:07 -0600 Subject: add builder read substitutions dictionary --- nodes/node_builders.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nodes/node_builders.lua') diff --git a/nodes/node_builders.lua b/nodes/node_builders.lua index 53edaa5..683ecde 100644 --- a/nodes/node_builders.lua +++ b/nodes/node_builders.lua @@ -175,7 +175,8 @@ minetest.register_node("digtron:builder", { if target_node.name ~= "air" and minetest.get_item_group(target_node.name, "digtron") == 0 then local meta = minetest.get_meta(pos) local inv = meta:get_inventory() - inv:set_stack("main", 1, target_node.name) + local target_name = digtron.builder_read_item_substitutions[target_node.name] or target_node.name + inv:set_stack("main", 1, target_name) meta:set_int("build_facing", target_node.param2) end end -- cgit v1.2.3