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, }},