mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 11:45:10 +00:00
Make redstone wire transmit power vertically, too
This commit is contained in:
parent
4f9be58871
commit
483d6d088c
1 changed files with 4 additions and 1 deletions
|
@ -163,7 +163,10 @@ local function register_wires()
|
|||
nodebox.fixed = {-8/16, -.5, -1/16, 8/16, -.5+1/16, 1/16}
|
||||
end
|
||||
|
||||
local rules = {}
|
||||
local rules = {
|
||||
{x=0, y=-1, z=0, spread=true},
|
||||
{x=0, y= 1, z=0, spread=true},
|
||||
}
|
||||
if (nid[0] == 1) then table.insert(rules, {x=1, y= 0,z= 0, spread=true}) end
|
||||
if (nid[1] == 1) then table.insert(rules, {x=0, y= 0,z= 1, spread=true}) end
|
||||
if (nid[2] == 1) then table.insert(rules, {x=-1,y= 0,z= 0, spread=true}) end
|
||||
|
|
Loading…
Reference in a new issue