mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user