summaryrefslogtreecommitdiff
path: root/mesecons_doors
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_doors')
-rw-r--r--mesecons_doors/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_doors/init.lua b/mesecons_doors/init.lua
index 52d6c17..f7059fd 100644
--- a/mesecons_doors/init.lua
+++ b/mesecons_doors/init.lua
@@ -95,13 +95,13 @@ if doors and doors.get then
action_on = function(pos, node)
local door = doors.get(pos)
if door then
- door:open()
+ door:toggle()
end
end,
action_off = function(pos, node)
local door = doors.get(pos)
if door then
- door:close()
+ door:toggle()
end
end,
}},