ATS的开关门操作增加修改门选择逻辑

This commit is contained in:
joylink_zhangsai 2023-02-14 17:33:32 +08:00
parent 85e678e90f
commit 8463e2ff57

View File

@ -522,7 +522,9 @@ public class ATPService {
}
VirtualRealityTrain.Door door = train.getDoorByDirection(doorIsRight);
if (!Objects.equals(door.isOpen(), open)) {
train.setDoorSelection(doorIsRight ? VirtualRealityTrain.DoorSelection.R : VirtualRealityTrain.DoorSelection.L);
openOrCloseDoor(simulation, train, doorIsRight, open);
train.setDoorSelection(VirtualRealityTrain.DoorSelection.Z);
}
}