diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-01-27 19:40:10 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-01-27 19:40:10 -0700 |
commit | bfa9af888abb7b482095d81548194075be913556 (patch) | |
tree | ed664a5a2d16cb0e4ae505fbdbeeef531f5af7f5 /node_builders.lua | |
parent | e1c4385471f515b9b91096d5c7cf9ff7a0893d1f (diff) |
Add a "stop block" setting to auto-controller
Diffstat (limited to 'node_builders.lua')
-rw-r--r-- | node_builders.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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, |