mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-18 22:39:33 +01: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}
|
nodebox.fixed = {-8/16, -.5, -1/16, 8/16, -.5+1/16, 1/16}
|
||||||
end
|
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[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[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
|
if (nid[2] == 1) then table.insert(rules, {x=-1,y= 0,z= 0, spread=true}) end
|
||||||
|
|
Loading…
Reference in a new issue