diff options
Diffstat (limited to 'nodes/node_diggers.lua')
-rw-r--r-- | nodes/node_diggers.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nodes/node_diggers.lua b/nodes/node_diggers.lua index 78d5200..bf48f71 100644 --- a/nodes/node_diggers.lua +++ b/nodes/node_diggers.lua @@ -33,7 +33,7 @@ local intermittent_formspec = "tooltip[period;" .. S("Digger will dig once every n steps.\nThese steps are globally aligned, all diggers with\nthe same period and offset will dig on the same location.") .. "]" .. "field[1.5,0.8;1,0.1;offset;" .. S("Offset") .. ";${offset}]" .. "tooltip[offset;" .. S("Offsets the start of periodicity counting by this amount.\nFor example, a digger with period 2 and offset 0 digs\nevery even-numbered block and one with period 2 and\noffset 1 digs every odd-numbered block.") .. "]" .. - "button_exit[2.2,0.5;1,0.1;set;" .. S("Save") .. "]" .. + "button_exit[2.2,0.5;1,0.1;set;" .. S("Save &\nShow") .. "]" .. "tooltip[set;" .. S("Saves settings") .. "]" if minetest.get_modpath("doc") then @@ -65,6 +65,9 @@ local intermittent_on_receive_fields = function(pos, formname, fields, sender) local node_name = minetest.get_node(pos).name minetest.after(0.5, doc.show_entry, sender:get_player_name(), "nodes", node_name, true) end + if fields.set then + digtron.show_offset_markers(pos, offset, period) + end end, -- Digs out nodes that are "in front" of the digger head. |