Shuffle the order that hives try to generate

This commit is contained in:
mezz committed 2015-01-11 13:57:47 -08:00
1 parent 04d6b979ab
commit b3fbadce84
1 file changed
+6 -1
@@ -10,6 +10,8 @@
******************************************************************************/
package forestry.apiculture.worldgen;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import net.minecraft.block.Block;
@@ -58,7 +60,10 @@ public class HiveDecorator {
}
private void decorateHives(World world, Random rand, int chunkX, int chunkZ) {
for (Hive hive : PluginApiculture.hiveRegistry.getHives()) {
List<Hive> hives = PluginApiculture.hiveRegistry.getHives();
Collections.shuffle(hives, rand);
for (Hive hive : hives) {
if (Config.generateBeehivesDebug)
genHiveDebug(world, chunkX, chunkZ, hive);
else