fix power produce & consumption (#2217)

This commit is contained in:
zethnest
2020-07-09 21:23:49 +08:00
committed by GitHub
parent 29e9d064df
commit 2a81370c66

View File

@@ -350,7 +350,7 @@ public class SchematicsDialog extends BaseDialog{
}
});
cont.row();
float cons = schem.powerConsumption(), prod = schem.powerProduction();
float cons = schem.powerConsumption() * 60, prod = schem.powerProduction() * 60;
if(!Mathf.zero(cons) || !Mathf.zero(prod)){
cont.table(t -> {