summaryrefslogtreecommitdiff
path: root/devices.lua
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2016-04-14 22:24:43 -0700
committerAuke Kok <sofar@foo-projects.org>2016-04-14 22:24:43 -0700
commit66cfc745e1fc7f0d0ca4e4a5cbbd3e9928c192bd (patch)
treea116be8af65657b12f5b50ab436c7fe19cfef377 /devices.lua
parent82c03466d74e651519139c297405b514984eeef4 (diff)
downloadpipeworks-66cfc745e1fc7f0d0ca4e4a5cbbd3e9928c192bd.tar
pipeworks-66cfc745e1fc7f0d0ca4e4a5cbbd3e9928c192bd.tar.gz
pipeworks-66cfc745e1fc7f0d0ca4e4a5cbbd3e9928c192bd.tar.bz2
pipeworks-66cfc745e1fc7f0d0ca4e4a5cbbd3e9928c192bd.tar.xz
pipeworks-66cfc745e1fc7f0d0ca4e4a5cbbd3e9928c192bd.zip
Squelch a warning if no mesecons.
Diffstat (limited to 'devices.lua')
-rw-r--r--devices.lua2
1 files changed, 1 insertions, 1 deletions
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,