Added config check to prevent crashes

Fixes part of #618
This commit is contained in:
CovertJaguar 2013-01-31 23:03:35 -08:00
parent ff05f75e12
commit 2dab4b0a8b

View file

@ -22,6 +22,9 @@ public class SpringPopulate {
@ForgeSubscribe
public void populate(PopulateChunkEvent.Post event) {
if (!BuildCraftCore.modifyWorld) {
return;
}
boolean doGen = TerrainGen.populate(event.chunkProvider, event.world, event.rand, event.chunkX, event.chunkX, event.hasVillageGenerated, PopulateChunkEvent.Populate.EventType.CUSTOM);