Fixed #267 - Large gear spinning way too fast

This commit is contained in:
Calclavia 2014-02-24 20:52:14 +08:00
parent 0166ed66fa
commit 654103b703

View file

@ -89,9 +89,10 @@ public class TileGenerator extends TileElectrical implements IRotatable
{
if (extract > 0)
{
long torqueRatio = (long) ((gearRatio + 1) / 3d * (energy.getMaxExtract() / 2));
long torqueRatio = (long) ((gearRatio + 1) / 3d * (energy.getMaxExtract()));
final float maxAngularVelocity = extract / (float) torqueRatio;
final long maxTorque = (long) (((double) extract) / maxAngularVelocity);
float setAngularVelocity = maxAngularVelocity;