Reeds in swampification

This commit is contained in:
Vaern 2022-10-25 18:13:57 -07:00
parent c56257945b
commit 07373dde56

View File

@ -158,15 +158,17 @@ public class BunkerComponents extends ProceduralComponents {
}
if(canGenPlant) {
/*Block belowNeighbor = world.getBlock(posX, posY - 2, posZ);
int bound = !belowNeighbor.isNormalCube() ? 10 : 10; //reeds
int value = rand.nextInt(bound);
int value = rand.nextInt(2);
if(value <= 0) {*/
if(value <= 0) {
int rY = posY + rand.nextInt(10) - rand.nextInt(10);
if(rY == posY)
world.setBlock(posX, posY, posZ, Blocks.waterlily, 0, 2);
//}
} else if(value <= 1) {
int rY = posY + rand.nextInt(10) - rand.nextInt(10);
if(rY == posY)
world.setBlock(posX, posY, posZ, ModBlocks.reeds, 0, 2);
}
}
}
}