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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user