mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 23:03:18 +00:00
Change the biome temperature and rainfall to ForestryAPI.climateManager.getTemperature and ForestryAPI.climateManager.getHumidity
This commit is contained in:
1 parent
336d388b4b
commit
806b5121a8
15 files changed
+46
-42
No files matched your search
@@ -411,7 +411,7 @@ public class AlvearyController extends RectangularMultiblockControllerBase imple
|
||||
public void addTemperatureChange(float change, float boundaryDown, float boundaryUp) {
|
||||
BlockPos coordinates = getCoordinates();
|
||||
|
||||
float temperature = getBiome().getFloatTemperature(coordinates);
|
||||
float temperature = ForestryAPI.climateManager.getTemperature(worldObj, getReferenceCoord());
|
||||
|
||||
tempChange += change;
|
||||
tempChange = Math.max(boundaryDown - temperature, tempChange);
|
||||
@@ -420,7 +420,7 @@ public class AlvearyController extends RectangularMultiblockControllerBase imple
|
||||
|
||||
@Override
|
||||
public void addHumidityChange(float change, float boundaryDown, float boundaryUp) {
|
||||
float humidity = getBiome().rainfall;
|
||||
float humidity = ForestryAPI.climateManager.getHumidity(worldObj, getReferenceCoord());
|
||||
|
||||
humidChange += change;
|
||||
humidChange = Math.max(boundaryDown - humidity, humidChange);
|
||||
|
||||
Reference in new issue
Block a user