summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2020-04-30 00:57:26 -0500
committercheapie <no-email-for-you@example.com>2020-04-30 00:57:26 -0500
commit137f749563d97b707db6ab3c27ca6185eae622cc (patch)
tree09587a74ee1a50601f910f7cda2b3f3d28a92a69
parent92a8d35af79e1cff5bd4372d6af3e34196e2a3ed (diff)
downloadmesecons_carts-137f749563d97b707db6ab3c27ca6185eae622cc.tar
mesecons_carts-137f749563d97b707db6ab3c27ca6185eae622cc.tar.gz
mesecons_carts-137f749563d97b707db6ab3c27ca6185eae622cc.tar.bz2
mesecons_carts-137f749563d97b707db6ab3c27ca6185eae622cc.tar.xz
mesecons_carts-137f749563d97b707db6ab3c27ca6185eae622cc.zip
Add compatibility with digistuff's channel copier
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 8bb9002..324e451 100644
--- a/init.lua
+++ b/init.lua
@@ -450,6 +450,7 @@ if minetest.get_modpath("digilines") then
"mesecons_carts_digi_tjunction.png",
"mesecons_carts_digi_crossing.png",
},
+ _digistuff_channelcopier_fieldname = "channel",
after_place_node = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
@@ -486,6 +487,7 @@ if minetest.get_modpath("digilines") then
"mesecons_carts_digi_tjunction.png",
"mesecons_carts_digi_crossing.png",
},
+ _digistuff_channelcopier_fieldname = "channel",
drop = "mesecons_carts:digilines_rail_idle",
after_place_node = function(pos)
local meta = minetest.get_meta(pos)
@@ -521,6 +523,7 @@ if minetest.get_modpath("digilines") then
"mesecons_carts_digi_tjunction.png",
"mesecons_carts_digi_crossing.png",
},
+ _digistuff_channelcopier_fieldname = "channel",
drop = "mesecons_carts:digilines_rail_idle",
after_place_node = function(pos)
local meta = minetest.get_meta(pos)