Changes to IMechanicalNode api
This commit is contained in:
parent
729ce5375f
commit
555e3f0cce
3 changed files with 3 additions and 3 deletions
|
@ -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--;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue