summaryrefslogtreecommitdiff
path: root/nodes/node_builders.lua
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-09-19 00:24:07 -0600
committerFaceDeer <derksenmobile@gmail.com>2017-09-19 00:24:07 -0600
commitd66cbc21642df96ca69f00624bd8d723313e416e (patch)
treea056a332ec24c4f8d4782180946f29d624102d82 /nodes/node_builders.lua
parent576aeeade02104a41ccb60d4dda91f8e364639a1 (diff)
add builder read substitutions dictionary
Diffstat (limited to 'nodes/node_builders.lua')
-rw-r--r--nodes/node_builders.lua3
1 files changed, 2 insertions, 1 deletions
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