Files
horizon-airdef/crates
Ludovic Marie 1efc7f83d1 Entity portal checks: skip the sweep where no section holds a portal
Every tick, each item and mob that can use a portal sweeps the blocks its
box passed through since the last tick, looking for a nether portal block
(`Entity.checkInsideBlocks` reaching `NetherPortalBlock.entityInside`).
Each sweep allocated a visited set and read every block of the path.

Every block a sweep visits lies in the box covering the entity's box at
both ends. When no section that box touches has a nether portal state in
its palette, no visited block is a portal: the sweep is skipped. Sections
are checked once per tick, and a box over more than 64 sections (an
entity teleported far) is swept as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 05:55:41 +02:00
..