Normalize Berry Bush rarity behavior (#154)

Co-authored-by: Ilya Yurchenko <[email protected]>
Co-authored-by: Martin Robertz <[email protected]>
Co-authored-by: paulzzh <[email protected]>
Co-authored-by: Yannick Marcotte-Gourde <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-03-22 15:59:21 -05:00
1 parent 1eb03efeed
commit eed84fc525
2 files changed
+2 -2

No files matched your search

@@ -205,7 +205,7 @@ public class PHConstruct {
copperBushRarity = config.get("Worldgen", "Copper Bush Rarity", 3).getInt(3);
tinBushRarity = config.get("Worldgen", "Tin Bush Rarity", 3).getInt(3);
aluminumBushRarity = config.get("Worldgen", "Aluminum Bush Rarity", 2).getInt(2);
essenceBushRarity = config.get("Worldgen", "Essence Bush Rarity", 6).getInt(6);
essenceBushRarity = config.get("Worldgen", "Essence Bush Rarity", 5).getInt(5);
copperBushMinY = config.get("Worldgen", "Copper Bush Min Y", 20).getInt(20);
copperBushMaxY = config.get("Worldgen", "Copper Bush Max Y", 60).getInt(60);
@@ -190,7 +190,7 @@ public class TBaseWorldGenerator implements IWorldGenerator {
}
}
}
if (PHConstruct.generateEssenceBush && random.nextInt(PHConstruct.essenceBushRarity) == 0) {
if (PHConstruct.generateEssenceBush && random.nextInt(PHConstruct.essenceBushRarity + 1) == 0) {
for (int i = 0; i < PHConstruct.silverBushDensity; i++) {
xPos = xChunk + random.nextInt(16);
yPos = PHConstruct.seaLevel - 16;