diff --git a/src/main/java/mekanism/common/CommonWorldTickHandler.java b/src/main/java/mekanism/common/CommonWorldTickHandler.java index 92f682cbc..ad7a769f4 100644 --- a/src/main/java/mekanism/common/CommonWorldTickHandler.java +++ b/src/main/java/mekanism/common/CommonWorldTickHandler.java @@ -9,7 +9,7 @@ import mekanism.common.frequency.FrequencyManager; import mekanism.common.multiblock.MultiblockManager; import net.minecraft.util.math.ChunkPos; import net.minecraft.world.World; -import net.minecraft.world.chunk.IChunkGenerator; +import net.minecraft.world.gen.ChunkProviderServer; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent.Phase; import net.minecraftforge.fml.common.gameevent.TickEvent.WorldTickEvent; @@ -111,7 +111,7 @@ public class CommonWorldTickHandler long zSeed = fmlRandom.nextLong() >> 2 + 1L; fmlRandom.setSeed((xSeed*nextChunk.chunkXPos + zSeed*nextChunk.chunkZPos) ^ world.getSeed()); - Mekanism.genHandler.generate(fmlRandom, nextChunk.chunkXPos, nextChunk.chunkZPos, world, (IChunkGenerator)world.getChunkProvider(), world.getChunkProvider()); + Mekanism.genHandler.generate(fmlRandom, nextChunk.chunkXPos, nextChunk.chunkZPos, world, ((ChunkProviderServer)world.getChunkProvider()).chunkGenerator, world.getChunkProvider()); Mekanism.logger.info("[Mekanism] Regenerating ores at chunk " + nextChunk); }