From bfa9af888abb7b482095d81548194075be913556 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Fri, 27 Jan 2017 19:40:10 -0700 Subject: Add a "stop block" setting to auto-controller --- node_builders.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'node_builders.lua') diff --git a/node_builders.lua b/node_builders.lua index eeffa7a..01186f4 100644 --- a/node_builders.lua +++ b/node_builders.lua @@ -62,7 +62,6 @@ minetest.register_node("digtron:builder", { "button_exit[6.4,0.5;1,0.1;read;Read &\nSave]" .. "tooltip[read;Reads the facing of the block currently in the build location,\nthen saves all settings]" .. "list[current_player;main;0,1.3;8,1;]" .. - "list[current_player;main;0,1.3;8,1;]" .. default.get_hotbar_bg(0,1.3) .. "list[current_player;main;0,2.5;8,3;8]" .. "listring[current_player;main]" .. @@ -154,6 +153,8 @@ minetest.register_node("digtron:builder", { end, allow_metadata_inventory_take = function(pos, listname, index, stack, player) + local inv = minetest.get_inventory({type="node", pos=pos}) + inv:set_stack(listname, index, ItemStack("")) return 0 end, -- cgit v1.2.3