Propagate redstone power through opaque blocks

This commit is contained in:
Wuzzy 2018-01-20 19:04:53 +01:00
parent aaf68793fe
commit 33d978de06
3 changed files with 32 additions and 26 deletions

View file

@ -198,7 +198,12 @@ function mesecon.set_bit(binary,bit,value)
end
function mesecon.invertRule(r)
return vector.multiply(r, -1)
local spread = r.spread
r = vector.multiply(r, -1)
if spread then
r.spread = true
end
return r
end
function mesecon.tablecopy(table) -- deep table copy