toggle doors instead of opening and closing them, fixes solar panel flowers

This commit is contained in:
HybridDog 2016-02-27 11:43:09 +01:00
parent 2dc8101fa1
commit f1a42835f2
1 changed files with 4 additions and 4 deletions

View File

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