Lower max tree attempts

This commit is contained in:
dfsek
2020-10-13 17:23:11 -07:00
parent d5705bbcb9
commit 49045eca06

View File

@@ -38,7 +38,7 @@ public class TreePopulator extends GaeaBlockPopulator {
int origZ = chunk.getZ() << 4;
Biome b = grid.getBiome(x+origX, z+origZ, GenerationPhase.POPULATE);
if(((UserDefinedDecorator) b.getDecorator()).getTreeChance() < random.nextInt(100)) return;
int max = 50;
int max = 32;
int att = 0;
for(int i = 0; i < b.getDecorator().getTreeDensity() && att < max; ) {
att++;