Merge pull request #2020 from AEnterprise/6.1.x

fix progressbar in the lasertables
This commit is contained in:
SpaceToad 2014-09-14 16:46:35 +01:00
commit 9fc636d272

View file

@ -64,7 +64,7 @@ public abstract class TileLaserTableBase extends TileBuildCraft implements ILase
} else if (energy >= clientRequiredEnergy) {
return ratio;
} else {
return (int) (energy / clientRequiredEnergy * ratio);
return (int) ((double) energy / (double) clientRequiredEnergy * ratio);
}
}