Fix a little trafficlight bug.
This commit is contained in:
parent
3699df2927
commit
1d99d17d8d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user