Fixed power tests

This commit is contained in:
Anuken
2019-05-03 22:26:37 -04:00
parent 93ffb66e59
commit 5ee26fc3f4
3 changed files with 4 additions and 58 deletions

View File

@@ -135,7 +135,7 @@ public class PowerGraph{
if(otherConsumersAreValid(consumer, consumePower)){
consumer.entity.power.satisfaction = coverage;
}else{ //invalid consumers get an estimate, if they were to activate
consumer.entity.power.satisfaction = Math.min(1, produced / (needed + consumePower.usage));
consumer.entity.power.satisfaction = Math.min(1, produced / (needed + consumePower.usage * consumer.entity.delta()));
//just in case
if(Float.isNaN(consumer.entity.power.satisfaction)){
consumer.entity.power.satisfaction = 0f;