on enlève que quand c'est dans la queue
This commit is contained in:
parent
7a1ca1ef65
commit
0e3dfd140e
@ -95,7 +95,8 @@ public class BasicInstructionQueue implements InstructionQueue {
|
||||
case REACHEDFLOORSIGNAL:
|
||||
currentFloor = event.getCurrentFloor();
|
||||
currentDirection = event.getCurrentDirection();
|
||||
removeInstruction(currentFloor);
|
||||
if (currentFloor == getNextInstruction())
|
||||
removeInstruction(currentFloor);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user