mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 08:32:07 -07:00
Add config option for failed beehive release cooldowns (#12186)
This commit is contained in:
@@ -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
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user