Fix a little trafficlight bug.

This commit is contained in:
Thomas--S 2016-07-10 17:18:33 +02:00
parent 3699df2927
commit 1d99d17d8d

View File

@ -99,6 +99,9 @@ streets.on_digiline_receive = function(pos, node, channel, msg)
end
-- Tl states
local name = minetest.get_node(pos).name
if type(msg) ~= "string" then
return
end
msg = string.upper(msg)
if msg == "OFF" then
if name:find("pedlight") then