Fix: Add position sync for villagers and duplicate check

- Add position property to AddVillagerPacket
- Teleport villager to correct position on client
- Add duplicate guid check to prevent double villager creation
- Send position from Main.cs hook

🤖 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 10:52:39 +01:00
parent 7d6c915b49
commit eab7931f52
2 changed files with 17 additions and 0 deletions

View File

@@ -780,6 +780,7 @@ namespace KCM
new AddVillagerPacket()
{
guid = __result.guid,
position = pos, // Include villager spawn position
}.Send();
}
catch (Exception e)