南京二 实训问题处理 岔心占用

This commit is contained in:
Jade 2021-11-30 09:46:17 +08:00
parent a3d3f86518
commit 63db1a8564

View File

@ -871,7 +871,10 @@ public class Section extends DelayUnlockDevice {
boolean leftSectionNctOccupied = leftSection.isNctOccupied() && leftSection.getParent().equals(this.parent);
Section rightSection = logic.getRightSection();
boolean rightSectionNctOccupied = rightSection.isNctOccupied() && rightSection.getParent().equals(this.parent);
logic.setNctOccupied(leftSectionNctOccupied || rightSectionNctOccupied);
if (leftSectionNctOccupied || rightSectionNctOccupied) {
logic.setNctOccupied(true);
setNctOccupied(true);
}
});
}