summaryrefslogtreecommitdiff
path: root/noteblock.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2020-04-30 00:44:04 -0500
committercheapie <no-email-for-you@example.com>2020-04-30 00:44:04 -0500
commit7f5eaac5c35d4c26d566b39a45e93c4582712b90 (patch)
tree9171eab3d223ed1dd321f789eaad84c02583b518 /noteblock.lua
parent69a9304751cfdf784696212fcf4834eba584c584 (diff)
downloaddigistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.tar
digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.tar.gz
digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.tar.bz2
digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.tar.xz
digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.zip
Add channel copier
Diffstat (limited to 'noteblock.lua')
-rw-r--r--noteblock.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/noteblock.lua b/noteblock.lua
index 5bd0883..80c4936 100644
--- a/noteblock.lua
+++ b/noteblock.lua
@@ -21,6 +21,7 @@ minetest.register_node("digistuff:noteblock", {
tiles = {
"mesecons_noteblock.png"
},
+ _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