mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-06 07:30:35 +07:00
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:
parent
99eee2e738
commit
ee03469f7c
@ -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,
|
||||
|
@ -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)),
|
||||
|
Loading…
Reference in New Issue
Block a user