Fix: Add missing BakePathing() call in PlayerAddBuildingHook

The hook was skipping the original AddBuilding method but not calling
BakePathing(), which is required for villager pathfinding to work.
Without this, villagers cannot find paths to buildings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-14 11:42:20 +01:00
parent 89586ad8df
commit 5d086776cf

View File

@@ -701,6 +701,8 @@ namespace KCM
}
LogStep();
// CRITICAL: Bake pathing for villager movement!
b.BakePathing();
return false;
}