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:
@@ -50,7 +50,7 @@ public class ImpactReactor extends PowerGenerator{
|
|||||||
public void setBars(){
|
public void setBars(){
|
||||||
super.setBars();
|
super.setBars();
|
||||||
|
|
||||||
addBar("poweroutput", (GeneratorBuild entity) -> new Bar(() ->
|
addBar("power", (GeneratorBuild entity) -> new Bar(() ->
|
||||||
Core.bundle.format("bar.poweroutput",
|
Core.bundle.format("bar.poweroutput",
|
||||||
Strings.fixed(Math.max(entity.getPowerProduction() - consPower.usage, 0) * 60 * entity.timeScale(), 1)),
|
Strings.fixed(Math.max(entity.getPowerProduction() - consPower.usage, 0) * 60 * entity.timeScale(), 1)),
|
||||||
() -> Pal.powerBar,
|
() -> Pal.powerBar,
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class PowerGenerator extends PowerDistributor{
|
|||||||
public void setBars(){
|
public void setBars(){
|
||||||
super.setBars();
|
super.setBars();
|
||||||
|
|
||||||
if(hasPower && outputsPower && consPower != null){
|
if(hasPower && outputsPower){
|
||||||
addBar("power", (GeneratorBuild entity) -> new Bar(() ->
|
addBar("power", (GeneratorBuild entity) -> new Bar(() ->
|
||||||
Core.bundle.format("bar.poweroutput",
|
Core.bundle.format("bar.poweroutput",
|
||||||
Strings.fixed(entity.getPowerProduction() * 60 * entity.timeScale(), 1)),
|
Strings.fixed(entity.getPowerProduction() * 60 * entity.timeScale(), 1)),
|
||||||
|
|||||||
Reference in New Issue
Block a user