5205b909f7
PathNavigation.setRequiredPathLength calls updatePathfinderMaxVisitedNodes, so a villager's PathFinder visits up to max(follow range, 48) * 16 = 768 nodes, not the 256 of its follow range alone. Horizon always used follow range * 16, so a villager gave up on any job site, bed or bell whose path needed more than 256 nodes: in the seed 12345 village it never found the way round to the mason's stonecutter door. Navigation now keeps PathFinder.maxVisitedNodes: the base follow range times 16 when the mob is made, then max(follow range, required path length) * 16 after setRequiredPathLength and after any follow range change (Mob.onAttributeUpdated). A happy ghast that grows up or becomes a baby gets a new navigation, as in vanilla. mob_ai: villager_job_in_box, a composter inside a stone box whose doorway faces away from the villager. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>