From 66cfc745e1fc7f0d0ca4e4a5cbbd3e9928c192bd Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 14 Apr 2016 22:24:43 -0700 Subject: Squelch a warning if no mesecons. --- devices.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devices.lua') diff --git a/devices.lua b/devices.lua index 52f3002..e4c5f43 100644 --- a/devices.lua +++ b/devices.lua @@ -3,7 +3,7 @@ local pipereceptor_on = nil local pipereceptor_off = nil -if mesecon then +if minetest.get_modpath("mesecons") then pipereceptor_on = { receptor = { state = mesecon.state.on, -- cgit v1.2.3