Add config option for failed beehive release cooldowns (#12186)

This commit is contained in:
Warrior
2025-02-25 21:45:18 +01:00
committed by GitHub
parent f12d33f04e
commit 1d9b399427
2 changed files with 4 additions and 1 deletions

View File

@@ -163,7 +163,7 @@
iterator.remove(); iterator.remove();
} }
+ // Paper start - Fix bees aging inside; use exitTickCounter to keep actual bee life + // Paper start - Fix bees aging inside; use exitTickCounter to keep actual bee life
+ else { + else if (level.paperConfig().entities.behavior.cooldownFailedBeehiveReleases) {
+ beeData.exitTickCounter = beeData.occupant.minTicksInHive / 2; + beeData.exitTickCounter = beeData.occupant.minTicksInHive / 2;
+ } + }
+ // Paper end - Fix bees aging inside; use exitTickCounter to keep actual bee life + // Paper end - Fix bees aging inside; use exitTickCounter to keep actual bee life

View File

@@ -327,6 +327,9 @@ public class WorldConfiguration extends ConfigurationPart {
public int day = 5; public int day = 5;
} }
} }
@Comment("Adds a cooldown to bees being released after a failed release, which can occur if the hive is blocked or it being night.")
public boolean cooldownFailedBeehiveReleases = true;
} }
public TrackingRangeY trackingRangeY; public TrackingRangeY trackingRangeY;