Fix #497 Clockwork Engine animations runs forever when it stores energy

This commit is contained in:
mezz committed 2015-02-03 20:46:07 -08:00
1 parent b08a618baa
commit 7028a17649
1 file changed
+1 -1
@@ -155,7 +155,7 @@ public class EngineClockwork extends Engine {
}
float fromClockwork = (tension / ENGINE_CLOCKWORK_WIND_MAX) * Defaults.ENGINE_PISTON_SPEED_MAX;
return fromClockwork >= 0.01f ? fromClockwork : energyManager.getTotalEnergyStored() > 0 ? 0.01f : 0;
return fromClockwork >= 0.01f ? fromClockwork : 0;
}
@Override