From 7f5eaac5c35d4c26d566b39a45e93c4582712b90 Mon Sep 17 00:00:00 2001 From: cheapie Date: Thu, 30 Apr 2020 00:44:04 -0500 Subject: Add channel copier --- detector.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'detector.lua') diff --git a/detector.lua b/detector.lua index f6542da..8cb4170 100644 --- a/detector.lua +++ b/detector.lua @@ -12,6 +12,7 @@ minetest.register_node("digistuff:detector", { local meta = minetest.get_meta(pos) meta:set_string("formspec","size[8,4;]field[1,1;6,2;channel;Channel;${channel}]field[1,2;6,2;radius;Radius;${radius}]button_exit[2.25,3;3,1;submit;Save]") end, + _digistuff_channelcopier_fieldname = "channel", on_receive_fields = function(pos, formname, fields, sender) local name = sender:get_player_name() if minetest.is_protected(pos,name) and not minetest.check_player_privs(name,{protection_bypass=true}) then -- cgit v1.2.3