From b3fbadce84050595d8e4f8f4a7d5f750383a191a Mon Sep 17 00:00:00 2001 From: mezz Date: Sun, 11 Jan 2015 13:57:47 -0800 Subject: [PATCH] Shuffle the order that hives try to generate --- .../java/forestry/apiculture/worldgen/HiveDecorator.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/forestry/apiculture/worldgen/HiveDecorator.java b/src/main/java/forestry/apiculture/worldgen/HiveDecorator.java index ce6253592..9036d05e4 100755 --- a/src/main/java/forestry/apiculture/worldgen/HiveDecorator.java +++ b/src/main/java/forestry/apiculture/worldgen/HiveDecorator.java @@ -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 hives = PluginApiculture.hiveRegistry.getHives(); + Collections.shuffle(hives, rand); + + for (Hive hive : hives) { if (Config.generateBeehivesDebug) genHiveDebug(world, chunkX, chunkZ, hive); else