mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Make redstone wire transmit power vertically, too
This commit is contained in:
parent
4f9be58871
commit
483d6d088c
@ -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 New Issue
Block a user