南京二 实训问题处理 岔心占用
This commit is contained in:
parent
a3d3f86518
commit
63db1a8564
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user