From fd08c43250da8d3f225c4b35f943654ebb8efdef Mon Sep 17 00:00:00 2001 From: Chris Yeninas Date: Mon, 26 Jul 2021 00:47:37 -0400 Subject: [PATCH] Update FoundationBuildUpdateProcessor.cs Set TargetPlanet to fix LoadPlanetData error --- .../Factory/Foundation/FoundationBuildUpdateProcessor.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NebulaClient/PacketProcessors/Factory/Foundation/FoundationBuildUpdateProcessor.cs b/NebulaClient/PacketProcessors/Factory/Foundation/FoundationBuildUpdateProcessor.cs index c356522aa..170b425f5 100644 --- a/NebulaClient/PacketProcessors/Factory/Foundation/FoundationBuildUpdateProcessor.cs +++ b/NebulaClient/PacketProcessors/Factory/Foundation/FoundationBuildUpdateProcessor.cs @@ -29,8 +29,10 @@ public void ProcessPacket(FoundationBuildUpdatePacket packet, NebulaConnection c { factory.platformSystem.InitReformData(); } - + + FactoryManager.TargetPlanet = packet.PlanetId; FactoryManager.AddPlanetTimer(packet.PlanetId); + FactoryManager.TargetPlanet = FactoryManager.PLANET_NONE; int reformPointsCount = factory.planet.aux.ReformSnap(packet.GroundTestPos.ToVector3(), packet.ReformSize, packet.ReformType, packet.ReformColor, reformPoints, packet.ReformIndices, factory.platformSystem, out reformCenterPoint); factory.ComputeFlattenTerrainReform(reformPoints, reformCenterPoint, packet.Radius, reformPointsCount, 3f, 1f);