for (int var1 = 0; var1 < this.crafters.size(); ++var1) {
ICrafting var2 = (ICrafting) this.crafters.get(var1);
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());