Propagate redstone power through opaque blocks
This commit is contained in:
parent
aaf68793fe
commit
33d978de06
3 changed files with 32 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue