Add missing temperature/humidity adjustment logic (#25)

Don't adjust to a relatively better environment
This commit is contained in:
DianeXD authored and GitHub committed 2022-08-19 14:24:11 +02:00
1 parent c7b65abfd8
commit 6973dbc80d
1 file changed
+2
@@ -410,6 +410,7 @@ public class AlvearyController extends RectangularMultiblockControllerBase imple
tempChange += change;
tempChange = Math.max(boundaryDown - temperature, tempChange);
tempChange = Math.min(boundaryUp - temperature, tempChange);
tempChange = (change > 0 && tempChange < 0) || (change < 0 && tempChange > 0) ? 0 : tempChange;
}
@Override
@@ -419,6 +420,7 @@ public class AlvearyController extends RectangularMultiblockControllerBase imple
humidChange += change;
humidChange = Math.max(boundaryDown - humidity, humidChange);
humidChange = Math.min(boundaryUp - humidity, humidChange);
humidChange = (change > 0 && humidChange < 0) || (change < 0 && humidChange > 0) ? 0 : humidChange;
}
/* GUI */