Fix #1318 1.9.4 Crash with .153 version on world load

This commit is contained in:
Nedelosk committed 2016-06-13 22:56:29 +02:00
1 parent 28e7b561ea
commit 8639148f20
1 file changed
+4 -2
@@ -30,8 +30,10 @@ public class ClimateEventHandler {
region.updateClimate();
}
}
for(IClimateSource source : ForestryAPI.climateManager.getSources().get(Integer.valueOf(dim)).values()){
source.changeClimate(ticks, ForestryAPI.climateManager.getRegionForPos(event.world, source.getPos()));
if(ForestryAPI.climateManager.getSources().get(Integer.valueOf(dim)) != null){
for(IClimateSource source : ForestryAPI.climateManager.getSources().get(Integer.valueOf(dim)).values()){
source.changeClimate(ticks, ForestryAPI.climateManager.getRegionForPos(event.world, source.getPos()));
}
}
serverTicks.put(Integer.valueOf(dim), ticks+1);
}