mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-24 22:04:34 +00:00
Fix #1318 1.9.4 Crash with .153 version on world load
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user