mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 03:39:09 +00:00
Fix #497 Clockwork Engine animations runs forever when it stores energy
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user