mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 03:39:09 +00:00
Add missing temperature/humidity adjustment logic
Don't adjust to a relatively better environment
This commit is contained in:
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 */
|
||||
|
||||
Reference in new issue
Block a user