mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-02-18 11:34:59 +01:00
Fix rs not turnoff if rtorch is hor. behind opaque
This commit is contained in:
parent
e8ebc537f0
commit
930ecf9be1
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ function mesecon.turnoff(pos, link)
|
||||||
if mesecon.is_receptor_on(n.name) then
|
if mesecon.is_receptor_on(n.name) then
|
||||||
local receptorrules = mesecon.receptor_get_rules(n)
|
local receptorrules = mesecon.receptor_get_rules(n)
|
||||||
for _, rr in pairs(receptorrules) do
|
for _, rr in pairs(receptorrules) do
|
||||||
if vector.equals(mesecon.invertRule(rr), r) then
|
if rr.spread and vector.equals(mesecon.invertRule(rr), r) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue