limit avec grimpeur manuel

This commit is contained in:
Antoine PerreaultE 2025-02-26 17:23:27 -05:00
parent 77240d255e
commit 9b86a0b975

View File

@ -28,7 +28,13 @@ public class GrimpeurManuel extends Command {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
grimpeur.grimpe(x.getAsDouble());
if(grimpeur.stop()){
grimpeur.grimpe(0);
}
else{
grimpeur.grimpe(x.getAsDouble());
}
}
// Called once the command ends or is interrupted.