diff --git a/mesecons_doors/init.lua b/mesecons_doors/init.lua index 52d6c17..ba9d45e 100644 --- a/mesecons_doors/init.lua +++ b/mesecons_doors/init.lua @@ -52,13 +52,13 @@ local function meseconify_door(name) 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, rules = mesecon.rules.pplate @@ -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, }},