LocoSpeed speed = loco.getSpeed();
if (this.lastSpeed != speed)
var2.sendProgressBarUpdate(this, 10, speed.ordinal());
LocoMode mode = loco.getMode();
if (this.lastMode != mode)
var2.sendProgressBarUpdate(this, 11, mode.ordinal());
int lock = loco.getLockController().getCurrentState();
if (this.lastLockState != lock)
var2.sendProgressBarUpdate(this, 12, lock);
}