From a39e464bfc206d4e151afa741035d7d31d497f59 Mon Sep 17 00:00:00 2001 From: Robert S Date: Sun, 13 Apr 2014 04:30:05 -0400 Subject: [PATCH] .test --- .../resonantinduction/electrical/generator/TileMotor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrical/src/main/scala/resonantinduction/electrical/generator/TileMotor.java b/electrical/src/main/scala/resonantinduction/electrical/generator/TileMotor.java index 6e75fcd79..d871380cb 100644 --- a/electrical/src/main/scala/resonantinduction/electrical/generator/TileMotor.java +++ b/electrical/src/main/scala/resonantinduction/electrical/generator/TileMotor.java @@ -81,7 +81,7 @@ public class TileMotor extends TileElectrical implements IRotatable, INodeProvid if (receive > 0) { double percentageUsed = receive / power; - node.apply(-node.getTorque() * percentageUsed, -node.getAngularVelocity() * percentageUsed); + node.apply(this, -node.getTorque() * percentageUsed, -node.getAngularVelocity() * percentageUsed); } } @@ -111,7 +111,7 @@ public class TileMotor extends TileElectrical implements IRotatable, INodeProvid if (currentVelo != 0) setAngularVelocity = Math.min(+setAngularVelocity, maxAngularVelocity) * (node.getAngularVelocity() / currentVelo); - node.apply(setTorque - node.getTorque(), setAngularVelocity - node.getAngularVelocity()); + node.apply(this, setTorque - node.getTorque(), setAngularVelocity - node.getAngularVelocity()); energy.extractEnergy((long) Math.abs(setTorque * setAngularVelocity), true); } }