Move hives into biome decoration generation

fixes #1760
This commit is contained in:
Robert Obermeier authored and mezz committed 2017-07-24 22:33:21 -07:00
1 parent 73db1a608a
commit b4d71543db
5 files changed
+25 -2

No files matched your search

@@ -898,9 +898,11 @@ public class PluginApiculture extends BlankForestryPlugin {
}
@Override
public void populateChunk(IChunkGenerator chunkGenerator, World world, Random rand, int chunkX, int chunkZ, boolean hasVillageGenerated) {
public void decorateBiome(World world, Random rand, BlockPos pos) {
if (Config.getBeehivesAmount() > 0.0) {
HiveDecorator.decorateHives(chunkGenerator, world, rand, chunkX, chunkZ, hasVillageGenerated);
int chunkX = pos.getX() >> 4;
int chunkZ = pos.getZ() >> 4;
HiveDecorator.decorateHives(world, rand, chunkX, chunkZ);
}
}