Doors now close automatically
This commit is contained in:
parent
6eb3d8ee64
commit
faf864d11b
11
init.lua
11
init.lua
@ -103,12 +103,23 @@ minetest.override_item("lifter:door_a", {
|
||||
end
|
||||
fetch_lift(pos, node, clicker, -1, 0, b1rc, 1)
|
||||
fetch_lift(pos, node, clicker, -1, 0, b1rc, -1)
|
||||
-- minetest.after(5, b1rc, pos, node, clicker)
|
||||
else
|
||||
b1rc(pos, node, player)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"lifter:door_b"},
|
||||
interval = 8,
|
||||
chance = 1,
|
||||
catch_up = false,
|
||||
action = function(pos, node)
|
||||
minetest.after(1, b1rc, pos, node, "")
|
||||
end
|
||||
})
|
||||
|
||||
--minetest.override_item("lifter:door_b_2", {
|
||||
--on_rightclick = hijack_click(b2rc)
|
||||
--})
|
||||
|
Loading…
x
Reference in New Issue
Block a user