1efc7f83d1
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>