summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-05 20:30:48 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-05 20:30:48 -0500
commitc280705997607ac8684b75fbd3eb47b322388bbc (patch)
tree69f4ea64b66ecb7933102bd962f127d60d1c9326
parentbec349ed8f83b6befe597076744e2311dc86b67f (diff)
downloaddreambuilder_modpack-c280705997607ac8684b75fbd3eb47b322388bbc.tar
dreambuilder_modpack-c280705997607ac8684b75fbd3eb47b322388bbc.tar.gz
dreambuilder_modpack-c280705997607ac8684b75fbd3eb47b322388bbc.tar.bz2
dreambuilder_modpack-c280705997607ac8684b75fbd3eb47b322388bbc.tar.xz
dreambuilder_modpack-c280705997607ac8684b75fbd3eb47b322388bbc.zip
updated roads mod
-rw-r--r--infrastructure/advanced_lane_control_lights.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/infrastructure/advanced_lane_control_lights.lua b/infrastructure/advanced_lane_control_lights.lua
index 195f809..94d7ce1 100644
--- a/infrastructure/advanced_lane_control_lights.lua
+++ b/infrastructure/advanced_lane_control_lights.lua
@@ -63,10 +63,10 @@ for i = 1, 6 do
effector = {
action = function(pos, node, channel, msg)
local setchan = minetest.get_meta(pos):get_string("channel")
- if setchan ~= channel then
+ if setchan ~= channel or type(msg) ~= "string" then
return
end
- msg = msg:lower()
+ msg = string.lower(msg)
if (msg=="off") then
node.name = "infrastructure:lane_control_lights_1"
elseif (msg=="green") then