aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-10-17 17:42:32 +0200
committerorwell96 <orwell@bleipb.de>2018-10-17 17:42:32 +0200
commit87621caf1f684e66e5b7768859260c7aff66dc6b (patch)
treee4fec54a2e5dfe41b80cc87cc02be4cc3d16a311 /advtrains_luaautomation
parente04d84cb4c137d006587f932b149007bdbe6823a (diff)
downloadadvtrains-87621caf1f684e66e5b7768859260c7aff66dc6b.tar.gz
advtrains-87621caf1f684e66e5b7768859260c7aff66dc6b.tar.bz2
advtrains-87621caf1f684e66e5b7768859260c7aff66dc6b.zip
Fix H#66 (Hemiptera 66) crash on missing double_conn match
Diffstat (limited to 'advtrains_luaautomation')
-rw-r--r--advtrains_luaautomation/active_common.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_luaautomation/active_common.lua b/advtrains_luaautomation/active_common.lua
index 62dc83c..d4cc0da 100644
--- a/advtrains_luaautomation/active_common.lua
+++ b/advtrains_luaautomation/active_common.lua
@@ -118,7 +118,7 @@ function ac.run_in_env(pos, evtdata, customfct_p)
atlatc.interrupt.add(t, pos, {type="int", int=true, message=imesg})
end
-- add digiline_send function, if digiline is loaded
- if digiline then
+ if minetest.global_exists("digiline") then
customfct.digiline_send=function(channel, msg)
assertt(channel, "string")
digiline:receptor_send(pos, digiline.rules.default, channel, msg)