Fixed display of solar panel power generation
This commit is contained in:
@@ -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(){{
|
||||
|
||||
Reference in New Issue
Block a user