open/close tin doors automaticly

This commit is contained in:
Sokomine 2019-03-09 21:27:39 +01:00
parent 67c44ab210
commit 1d8823e3b9

@ -614,6 +614,7 @@ travelnet.open_close_door = function( pos, player, mode )
-- handle doors that change their facedir -- handle doors that change their facedir
or ( door_node.param2 == this_node.param2 or ( door_node.param2 == this_node.param2
and door_node.name ~= 'travelnet:elevator_door_glass_open' and door_node.name ~= 'travelnet:elevator_door_glass_open'
and door_node.name ~= 'travelnet:elevator_door_tin_open'
and door_node.name ~= 'travelnet:elevator_door_steel_open'))) then and door_node.name ~= 'travelnet:elevator_door_steel_open'))) then
return; return;
end end
@ -622,6 +623,7 @@ travelnet.open_close_door = function( pos, player, mode )
-- handle doors that change their facedir -- handle doors that change their facedir
or ( door_node.param2 ~= this_node.param2 or ( door_node.param2 ~= this_node.param2
and door_node.name ~= 'travelnet:elevator_door_glass_closed' and door_node.name ~= 'travelnet:elevator_door_glass_closed'
and door_node.name ~= 'travelnet:elevator_door_tin_closed'
and door_node.name ~= 'travelnet:elevator_door_steel_closed'))) then and door_node.name ~= 'travelnet:elevator_door_steel_closed'))) then
return; return;
end end