From 6b014c72dbab2cb95e62c3e39a840952a30e14e8 Mon Sep 17 00:00:00 2001 From: devbeni Date: Sun, 14 Dec 2025 15:27:41 +0100 Subject: [PATCH] Fix building materials and road/aqueduct rotation for remote players MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add UpdateMaterialSelection() and UpdateRotation() calls after building placement to fix visual issues when host views client's buildings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- Packets/Game/GameWorld/WorldPlace.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Packets/Game/GameWorld/WorldPlace.cs b/Packets/Game/GameWorld/WorldPlace.cs index b0df199..4defa67 100644 --- a/Packets/Game/GameWorld/WorldPlace.cs +++ b/Packets/Game/GameWorld/WorldPlace.cs @@ -125,6 +125,23 @@ namespace KCM.Packets.Game.GameWorld Main.helper.Log("unpack stage 2"); structureData.UnpackStage2(building); + // Update materials/textures for correct display + building.UpdateMaterialSelection(); + + // Update road rotation for proper visuals + Road roadComp = building.GetComponent(); + if (roadComp != null) + { + roadComp.UpdateRotation(); + } + + // Update aqueduct rotation + Aqueduct aqueductComp = building.GetComponent(); + if (aqueductComp != null) + { + aqueductComp.UpdateRotation(); + } + building.SetVisibleForFog(false); Main.helper.Log("Landmass owner take ownership");