From 5d086776cfd6339674fd0b00e38f72ddffc9277b Mon Sep 17 00:00:00 2001 From: devbeni Date: Sun, 14 Dec 2025 11:42:20 +0100 Subject: [PATCH] Fix: Add missing BakePathing() call in PlayerAddBuildingHook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Main.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Main.cs b/Main.cs index 943d11f..15dd6aa 100644 --- a/Main.cs +++ b/Main.cs @@ -701,6 +701,8 @@ namespace KCM } LogStep(); + // CRITICAL: Bake pathing for villager movement! + b.BakePathing(); return false; }