Separate ambient light and solar panel efficiency (#1593)

* new branch

* Separate ambient light and solar panel efficiency

* Made ambient light -> solar efficiency default
This commit is contained in:
DeltaNedas
2020-02-21 16:38:56 +00:00
committed by GitHub
parent de560ac6f8
commit fe22d334dc
4 changed files with 6 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ public class SolarGenerator extends PowerGenerator{
@Override
public void update(Tile tile){
tile.<GeneratorEntity>ent().productionEfficiency = state.rules.lighting ? 1f - state.rules.ambientLight.a : 1f;
tile.<GeneratorEntity>ent().productionEfficiency = state.rules.solarPowerMultiplier < 0 ? (state.rules.lighting ? 1f - state.rules.ambientLight.a : 1f) : state.rules.solarPowerMultiplier;
}
@Override