summaryrefslogtreecommitdiff
path: root/touchscreen.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 /touchscreen.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 'touchscreen.lua')
-rw-r--r--touchscreen.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/touchscreen.lua b/touchscreen.lua
index b0f10c2..e3255f2 100644
--- a/touchscreen.lua
+++ b/touchscreen.lua
@@ -290,6 +290,11 @@ minetest.register_node("digistuff:touchscreen", {
{ -0.5, -0.5, 0.4, 0.5, 0.5, 0.5 }
}
},
+ _digistuff_channelcopier_fieldname = "channel",
+ _digistuff_channelcopier_onset = function(pos)
+ minetest.get_meta(pos):set_int("init",1)
+ digistuff.update_ts_formspec(pos)
+ end,
on_receive_fields = digistuff.ts_on_receive_fields,
digiline =
{