4f1735170e
LivingEntity.pushEntities compared each mob's box with every other mob of the tick's snapshot: quadratic, about 1 ms per tick with 600 mobs. The snapshot is now also kept in a grid of 4-block columns by each box's minimum corner, updated as each mob finishes its tick, and the push reads only the columns its box can reach. Candidates come back in snapshot order, so the pushes, their order and their sums are the same: over 800,000 pushes in a 600-mob village both ways gave the same targets in the same order. A query wider than the grid (or not finite) falls back to the full scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>