diff options
author | Jeija <norrepli@gmail.com> | 2016-02-27 20:40:16 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2016-02-27 20:40:16 +0100 |
commit | 417a136c5e6842a6c54a98690746b0aa41ad69e5 (patch) | |
tree | add23eec57ff945653bfa9bf4a5d5564b73eab02 | |
parent | 2dc8101fa1ec132397284032f82926dc2c5d41f6 (diff) | |
download | mesecons-417a136c5e6842a6c54a98690746b0aa41ad69e5.tar mesecons-417a136c5e6842a6c54a98690746b0aa41ad69e5.tar.gz mesecons-417a136c5e6842a6c54a98690746b0aa41ad69e5.tar.bz2 mesecons-417a136c5e6842a6c54a98690746b0aa41ad69e5.tar.xz mesecons-417a136c5e6842a6c54a98690746b0aa41ad69e5.zip |
Toggle trapdoors on signal, workaround for #252
-rw-r--r-- | mesecons_doors/init.lua | 4 |
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, }}, |