Fixed #267 - Large gear spinning way too fast
This commit is contained in:
parent
0166ed66fa
commit
654103b703
1 changed files with 2 additions and 1 deletions
|
@ -89,9 +89,10 @@ public class TileGenerator extends TileElectrical implements IRotatable
|
||||||
{
|
{
|
||||||
if (extract > 0)
|
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 float maxAngularVelocity = extract / (float) torqueRatio;
|
||||||
|
|
||||||
final long maxTorque = (long) (((double) extract) / maxAngularVelocity);
|
final long maxTorque = (long) (((double) extract) / maxAngularVelocity);
|
||||||
|
|
||||||
float setAngularVelocity = maxAngularVelocity;
|
float setAngularVelocity = maxAngularVelocity;
|
||||||
|
|
Loading…
Reference in a new issue