mirror of
https://cheapiesystems.com/git/mesecons_carts
synced 2024-08-19 20:54:06 +02:00
Add compatibility with digistuff's channel copier
This commit is contained in:
parent
92a8d35af7
commit
137f749563
3
init.lua
3
init.lua
@ -450,6 +450,7 @@ if minetest.get_modpath("digilines") then
|
|||||||
"mesecons_carts_digi_tjunction.png",
|
"mesecons_carts_digi_tjunction.png",
|
||||||
"mesecons_carts_digi_crossing.png",
|
"mesecons_carts_digi_crossing.png",
|
||||||
},
|
},
|
||||||
|
_digistuff_channelcopier_fieldname = "channel",
|
||||||
after_place_node = function(pos)
|
after_place_node = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("formspec","field[channel;Channel;${channel}")
|
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_tjunction.png",
|
||||||
"mesecons_carts_digi_crossing.png",
|
"mesecons_carts_digi_crossing.png",
|
||||||
},
|
},
|
||||||
|
_digistuff_channelcopier_fieldname = "channel",
|
||||||
drop = "mesecons_carts:digilines_rail_idle",
|
drop = "mesecons_carts:digilines_rail_idle",
|
||||||
after_place_node = function(pos)
|
after_place_node = function(pos)
|
||||||
local meta = minetest.get_meta(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_tjunction.png",
|
||||||
"mesecons_carts_digi_crossing.png",
|
"mesecons_carts_digi_crossing.png",
|
||||||
},
|
},
|
||||||
|
_digistuff_channelcopier_fieldname = "channel",
|
||||||
drop = "mesecons_carts:digilines_rail_idle",
|
drop = "mesecons_carts:digilines_rail_idle",
|
||||||
after_place_node = function(pos)
|
after_place_node = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user