Changes to IMechanicalNode api

This commit is contained in:
Robert S 2014-04-13 04:20:27 -04:00
parent 729ce5375f
commit 555e3f0cce
3 changed files with 3 additions and 3 deletions

View file

@ -336,7 +336,7 @@ public class PartGear extends PartMechanical implements IMultiBlockStructure<Par
{
if (manualCrankTime > 0)
{
node.apply(isClockwiseCrank ? 15 : -15, isClockwiseCrank ? 0.025f : -0.025f);
node.apply(this, isClockwiseCrank ? 15 : -15, isClockwiseCrank ? 0.025f : -0.025f);
manualCrankTime--;
}

View file

@ -169,7 +169,7 @@ public class MechanicalNode extends Node<INodeProvider, TickingGrid, MechanicalN
}
@Override
public void apply(double torque, double angularVelocity)
public void apply(Object source, double torque, double angularVelocity)
{
this.torque += torque;
this.angularVelocity += angularVelocity;

View file

@ -117,7 +117,7 @@ public class TileMechanicalTurbine extends TileTurbineBase implements INodeProvi
if (mechanicalNode.angularVelocity < 0)
angularVelocity = -Math.abs(angularVelocity);
mechanicalNode.apply((torque - mechanicalNode.getTorque()) / 10, (angularVelocity - mechanicalNode.getAngularVelocity()) / 10);
mechanicalNode.apply(this, (torque - mechanicalNode.getTorque()) / 10, (angularVelocity - mechanicalNode.getAngularVelocity()) / 10);
}
}