Bollard is now up when having no signal. (#79)

This seems more logical to me, as the bollard is up most of the time.
Work well together with player detectors.
This commit is contained in:
Thomas--S 2016-06-04 00:13:52 +02:00 committed by cheapie
parent d0134f9bb3
commit 36f164e1f6

View File

@ -32,10 +32,10 @@ minetest.register_node("streets:bollard_driver", {
mesecons = { mesecons = {
effector = { effector = {
rules = mesecon.rules.default, rules = mesecon.rules.default,
action_on = function (pos, node) action_off = function (pos, node)
toggle_bollard(vector.add(pos, vector.new(0, 1, 0)), node, nil, nil, {type = "node", under = vector.add(pos, vector.new(0, -1, 0)), above = vector.add(pos, vector.new(0, 1, 0))},"up") toggle_bollard(vector.add(pos, vector.new(0, 1, 0)), node, nil, nil, {type = "node", under = vector.add(pos, vector.new(0, -1, 0)), above = vector.add(pos, vector.new(0, 1, 0))},"up")
end, end,
action_off = function (pos, node) action_on = function (pos, node)
toggle_bollard(vector.add(pos, vector.new(0, 1, 0)), node, nil, nil, {type = "node", under = vector.add(pos, vector.new(0, -1, 0)), above = vector.add(pos, vector.new(0, 1, 0))},"down") toggle_bollard(vector.add(pos, vector.new(0, 1, 0)), node, nil, nil, {type = "node", under = vector.add(pos, vector.new(0, -1, 0)), above = vector.add(pos, vector.new(0, 1, 0))},"down")
end end
}} }}