Fix #1789 The End has no hives. (#1795)

This commit is contained in:
Robert Obermeier authored and mezz committed 2017-08-11 20:56:12 -07:00
1 parent b2e1b2dc9b
commit fd724d147a
1 file changed
+9
@@ -33,6 +33,7 @@ import net.minecraft.potion.PotionUtils;
import net.minecraft.util.NonNullList;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.DimensionType;
import net.minecraft.world.World;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.gen.IChunkGenerator;
@@ -897,6 +898,14 @@ public class PluginApiculture extends BlankForestryPlugin {
return new SaveEventHandlerApiculture();
}
@Override
public void populateChunk(IChunkGenerator chunkGenerator, World world, Random rand, int chunkX, int chunkZ, boolean hasVillageGenerated) {
if(!world.provider.getDimensionType().equals(DimensionType.THE_END)) return;
if (Config.getBeehivesAmount() > 0.0) {
HiveDecorator.decorateHives(world, rand, chunkX, chunkZ);
}
}
@Override
public void decorateBiome(World world, Random rand, BlockPos pos) {
if (Config.getBeehivesAmount() > 0.0) {