Fix cart detector bug
This commit is contained in:
parent
a784069777
commit
223a43204b
@ -21,8 +21,11 @@ local logic = techage.logic
|
|||||||
local CYCLE_TIME = 2
|
local CYCLE_TIME = 2
|
||||||
|
|
||||||
local function switch_off(pos)
|
local function switch_off(pos)
|
||||||
logic.swap_node(pos, "techage:ta3_cartdetector_off")
|
local node = minetest.get_node(pos)
|
||||||
logic.send_off(pos, M(pos))
|
if node.name == "techage:ta3_cartdetector_on" then
|
||||||
|
logic.swap_node(pos, "techage:ta3_cartdetector_off")
|
||||||
|
logic.send_off(pos, M(pos))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function switch_on(pos)
|
local function switch_on(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user