summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2020-04-30 00:46:21 -0500
committercheapie <no-email-for-you@example.com>2020-04-30 00:46:21 -0500
commita3cc68ddeecbd35b5f4dd75433a4e924a6932bb8 (patch)
tree75859ac3d695984e8961711008633cad8c741351
parente6d3fbf074e325e2be7108ea02627ca47620c06d (diff)
downloaddigidisplay-a3cc68ddeecbd35b5f4dd75433a4e924a6932bb8.tar
digidisplay-a3cc68ddeecbd35b5f4dd75433a4e924a6932bb8.tar.gz
digidisplay-a3cc68ddeecbd35b5f4dd75433a4e924a6932bb8.tar.bz2
digidisplay-a3cc68ddeecbd35b5f4dd75433a4e924a6932bb8.tar.xz
digidisplay-a3cc68ddeecbd35b5f4dd75433a4e924a6932bb8.zip
Add compatibility with digistuff's channel copier
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 41035fc..8ede06c 100644
--- a/init.lua
+++ b/init.lua
@@ -97,6 +97,7 @@ for _,i in pairs({"tiny","small","medium","large","huge"}) do
type = "fixed",
fixed = {-0.5,-0.5,0.4,0.5,0.5,0.5},
},
+ _digistuff_channelcopier_fieldname = "channel",
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}]")