forked from Mirrorlandia_minetest/mesecons
Toggle trapdoors on signal, workaround for #252
This commit is contained in:
parent
2dc8101fa1
commit
417a136c5e
@ -95,13 +95,13 @@ if doors and doors.get then
|
|||||||
action_on = function(pos, node)
|
action_on = function(pos, node)
|
||||||
local door = doors.get(pos)
|
local door = doors.get(pos)
|
||||||
if door then
|
if door then
|
||||||
door:open()
|
door:toggle()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
action_off = function(pos, node)
|
action_off = function(pos, node)
|
||||||
local door = doors.get(pos)
|
local door = doors.get(pos)
|
||||||
if door then
|
if door then
|
||||||
door:close()
|
door:toggle()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
}},
|
}},
|
||||||
|
Loading…
Reference in New Issue
Block a user