mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 12:59:44 +00:00
Shuffle the order that hives try to generate
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user