From 59857881810b9cf5b4c82aa3bc9d93dbc7d05b0f Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Sat, 5 Jan 2019 22:04:56 -0700 Subject: [PATCH] fixing extrusion - place a copy of the example item, not the example item itself --- nodes/node_builders.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/node_builders.lua b/nodes/node_builders.lua index d25e82c..92571b2 100644 --- a/nodes/node_builders.lua +++ b/nodes/node_builders.lua @@ -330,7 +330,7 @@ minetest.register_node("digtron:builder", { -- item not in inventory! Need to sound the angry buzzer to let the player know, so return a negative number. return (built_count + 1) * -1 end - local returned_stack, success = digtron.item_place_node(item_stack, player, buildpos, build_facing) + local returned_stack, success = digtron.item_place_node(ItemStack(item_stack), player, buildpos, build_facing) if success == true then minetest.log("action", string.format("%s uses Digtron to build %s at (%d, %d, %d), displacing %s", player:get_player_name(), item_stack:get_name(), buildpos.x, buildpos.y, buildpos.z, oldnode.name)) --flag this node as *not* to be dug.