Fixed impact reactor warming up without satisfied power
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
@@ -76,7 +76,7 @@ public class ImpactReactor extends PowerGenerator{
|
|||||||
public void update(Tile tile){
|
public void update(Tile tile){
|
||||||
FusionReactorEntity entity = tile.entity();
|
FusionReactorEntity entity = tile.entity();
|
||||||
|
|
||||||
if(entity.cons.valid()){
|
if(entity.cons.valid() && entity.power.satisfaction >= 0.99f){
|
||||||
entity.warmup = Mathf.lerpDelta(entity.warmup, 1f, warmupSpeed);
|
entity.warmup = Mathf.lerpDelta(entity.warmup, 1f, warmupSpeed);
|
||||||
if(Mathf.isEqual(entity.warmup, 1f, 0.001f)){
|
if(Mathf.isEqual(entity.warmup, 1f, 0.001f)){
|
||||||
entity.warmup = 1f;
|
entity.warmup = 1f;
|
||||||
|
|||||||
Reference in New Issue
Block a user