ATS的开关门操作增加修改门选择逻辑
This commit is contained in:
parent
85e678e90f
commit
8463e2ff57
@ -522,7 +522,9 @@ public class ATPService {
|
|||||||
}
|
}
|
||||||
VirtualRealityTrain.Door door = train.getDoorByDirection(doorIsRight);
|
VirtualRealityTrain.Door door = train.getDoorByDirection(doorIsRight);
|
||||||
if (!Objects.equals(door.isOpen(), open)) {
|
if (!Objects.equals(door.isOpen(), open)) {
|
||||||
|
train.setDoorSelection(doorIsRight ? VirtualRealityTrain.DoorSelection.R : VirtualRealityTrain.DoorSelection.L);
|
||||||
openOrCloseDoor(simulation, train, doorIsRight, open);
|
openOrCloseDoor(simulation, train, doorIsRight, open);
|
||||||
|
train.setDoorSelection(VirtualRealityTrain.DoorSelection.Z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user