Fixed display of solar panel power generation

This commit is contained in:
Timmeey86 2018-12-02 12:43:18 +01:00
parent 034fab480d
commit f8cf185db9

View File

@ -17,6 +17,14 @@ public class SolarGenerator extends PowerGenerator{
flags = EnumSet.of();
}
@Override
public void setStats(){
super.setStats();
// Solar Generators don't really have an efficiency (yet), so for them 100% = 1.0f
stats.remove(generationType);
stats.add(generationType, powerProduction * 60.0f, StatUnit.powerSecond);
}
@Override
public TileEntity newEntity(){
return new PowerGenerator.GeneratorEntity(){{