mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-09-28 15:20:29 +02:00
toggle doors instead of opening and closing them, fixes solar panel flowers
This commit is contained in:
parent
2dc8101fa1
commit
f1a42835f2
|
@ -52,13 +52,13 @@ local function meseconify_door(name)
|
||||||
action_on = function(pos, node)
|
action_on = function(pos, node)
|
||||||
local door = doors.get(pos)
|
local door = doors.get(pos)
|
||||||
if door then
|
if door then
|
||||||
door:open()
|
door:toggle()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
action_off = function(pos, node)
|
action_off = function(pos, node)
|
||||||
local door = doors.get(pos)
|
local door = doors.get(pos)
|
||||||
if door then
|
if door then
|
||||||
door:close()
|
door:toggle()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
rules = mesecon.rules.pplate
|
rules = mesecon.rules.pplate
|
||||||
|
@ -95,13 +95,13 @@ if doors and doors.get then
|
||||||
action_on = function(pos, node)
|
action_on = function(pos, node)
|
||||||
local door = doors.get(pos)
|
local door = doors.get(pos)
|
||||||
if door then
|
if door then
|
||||||
door:open()
|
door:toggle()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
action_off = function(pos, node)
|
action_off = function(pos, node)
|
||||||
local door = doors.get(pos)
|
local door = doors.get(pos)
|
||||||
if door then
|
if door then
|
||||||
door:close()
|
door:toggle()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
}},
|
}},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user