Fix inconsistent power bar name (#6942)

* Fix inconsistent power bar name

* Fix missing power generation bar

The boolean i removed was flipped, i don't even know why this check exists at all so i made it go poof
This commit is contained in:
buthed010203 2022-06-08 08:28:15 -04:00 committed by GitHub
parent 99eee2e738
commit ee03469f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ public class ImpactReactor extends PowerGenerator{
public void setBars(){
super.setBars();
addBar("poweroutput", (GeneratorBuild entity) -> new Bar(() ->
addBar("power", (GeneratorBuild entity) -> new Bar(() ->
Core.bundle.format("bar.poweroutput",
Strings.fixed(Math.max(entity.getPowerProduction() - consPower.usage, 0) * 60 * entity.timeScale(), 1)),
() -> Pal.powerBar,

View File

@ -47,7 +47,7 @@ public class PowerGenerator extends PowerDistributor{
public void setBars(){
super.setBars();
if(hasPower && outputsPower && consPower != null){
if(hasPower && outputsPower){
addBar("power", (GeneratorBuild entity) -> new Bar(() ->
Core.bundle.format("bar.poweroutput",
Strings.fixed(entity.getPowerProduction() * 60 * entity.timeScale(), 1)),