mirror of
https://github.com/Sokomine/travelnet.git
synced 2024-11-30 19:23:44 +01:00
open/close tin doors automaticly
This commit is contained in:
parent
67c44ab210
commit
1d8823e3b9
2
init.lua
2
init.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user