1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-03-22 23:15:36 +01:00

Add config option for failed beehive release cooldowns ()

This commit is contained in:
Warrior 2025-02-25 21:45:18 +01:00 committed by GitHub
parent f12d33f04e
commit 1d9b399427
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions
paper-server
patches/sources/net/minecraft/world/level/block/entity
src/main/java/io/papermc/paper/configuration

View file

@ -163,7 +163,7 @@
iterator.remove();
}
+ // 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;
+ }
+ // 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;
}
}
@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;