mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-10 11:45:06 +00:00
Minor repeater refactor
This commit is contained in:
parent
3229f2a902
commit
2788cad59c
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ if i == 1 then
|
|||
local snode = minetest.get_node(spos)
|
||||
local g = minetest.get_item_group(snode.name, "redstone_repeater")
|
||||
local sdef = minetest.registered_nodes[snode.name]
|
||||
if g ~= 0 and sdef.mesecons.receptor.state == mesecon.state.on then
|
||||
if g ~= 0 and mesecon.is_receptor_on(snode.name) then
|
||||
if mesecon.is_powered(pos, delayer_get_input_rules(node)[1]) ~= false then
|
||||
minetest.set_node(pos, {name="mesecons_delayer:delayer_on_locked", param2 = node.param2})
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue