Add missing temperature/humidity adjustment logic

Don't adjust to a relatively better environment
This commit is contained in:
DianeXD committed 2022-08-03 12:18:19 +08:00
1 parent c7b65abfd8
commit fc51d3d5ea
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 */