get motor from MotorMount with non-deprecated method

This commit is contained in:
bkuker 2013-04-05 14:17:35 -04:00
parent d7b46d6058
commit 6f72662ea8

View File

@ -163,7 +163,7 @@ public abstract class RocketRenderer {
Iterator<MotorMount> iterator = configuration.motorIterator();
while (iterator.hasNext()) {
MotorMount mount = iterator.next();
Motor motor = mount.getMotor(motorID);
Motor motor = mount.getMotorConfiguration().get(motorID).getMotor();
double length = motor.getLength();
Coordinate[] position = ((RocketComponent) mount).toAbsolute(new Coordinate(((RocketComponent) mount)