Improved pathfinding to stationary targets to not unnecessarily recalculate the path

Fixed an issue where end-of-movement was not being considered properly
Added admin command for drawing chunk boundaries ::drawchunks
Added admin command for drawing region boundaries ::drawregions
Added admin command for drawing the current route ::drawroute
Fixed impling IndexOutOfBoundsException
This commit is contained in:
Ceikry
2023-04-21 16:19:23 +00:00
committed by Ryan
parent f92fde2800
commit 9619f5b3a7
6 changed files with 137 additions and 56 deletions
@@ -16,7 +16,7 @@ class ImplingController : TickListener, Commands {
if (--nextCycle > getTicksBeforeNextCycleToDespawn())
return
if (activeImplings.size > 0) {
clearSomeImplings(implingsClearedPerTick)
clearSomeImplings(min(activeImplings.size, implingsClearedPerTick))
return
}
generateSpawners()