mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-17 19:05:31 +00:00
Add config option to add a chance of additional princess spawn, for skyblock/limited land maps
Minor Cleanup
This commit is contained in:
1 parent
786dbd82c7
commit
2b4dfcdae3
2 files changed
+19
-5
No files matched your search
@@ -381,11 +381,16 @@ public class BeekeepingLogic implements IBeekeepingLogic {
|
||||
housing.onQueenDeath(getQueen());
|
||||
|
||||
// Princess
|
||||
IBee heiress = queen.spawnPrincess(housing);
|
||||
if (heiress != null) {
|
||||
ItemStack princess = PluginApiculture.beeInterface.getMemberStack(heiress, EnumBeeType.PRINCESS.ordinal());
|
||||
breedingTracker.registerPrincess(heiress);
|
||||
offspring.push(princess);
|
||||
boolean secondPrincess = this.housing.getWorld().rand.nextInt(100) < PluginApiculture.getSecondPrincessChance();
|
||||
int count = secondPrincess ? 2 : 1;
|
||||
while (count > 0) {
|
||||
count--;
|
||||
IBee heiress = queen.spawnPrincess(housing);
|
||||
if (heiress != null) {
|
||||
ItemStack princess = PluginApiculture.beeInterface.getMemberStack(heiress, EnumBeeType.PRINCESS.ordinal());
|
||||
breedingTracker.registerPrincess(heiress);
|
||||
offspring.push(princess);
|
||||
}
|
||||
}
|
||||
|
||||
// Drones
|
||||
|
||||
Reference in new issue
Block a user