Add a solar panel output multiplier (#7013)

* do

* world processor compatibility

* useless
This commit is contained in:
Ilya246
2022-06-13 21:09:06 -04:00
committed by GitHub
parent 58bfd0e46c
commit dc5b184d45
6 changed files with 8 additions and 1 deletions
@@ -26,7 +26,7 @@ public class SolarGenerator extends PowerGenerator{
@Override
public void updateTile(){
productionEfficiency = enabled ?
Mathf.maxZero(Attribute.light.env() +
state.rules.solarMultiplier * Mathf.maxZero(Attribute.light.env() +
(state.rules.lighting ?
1f - state.rules.ambientLight.a :
1f