Skip to content

Commit fd08c43

Browse files
committed
Update FoundationBuildUpdateProcessor.cs
Set TargetPlanet to fix LoadPlanetData error
1 parent 3996675 commit fd08c43

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

NebulaClient/PacketProcessors/Factory/Foundation/FoundationBuildUpdateProcessor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ public void ProcessPacket(FoundationBuildUpdatePacket packet, NebulaConnection c
2929
{
3030
factory.platformSystem.InitReformData();
3131
}
32-
32+
33+
FactoryManager.TargetPlanet = packet.PlanetId;
3334
FactoryManager.AddPlanetTimer(packet.PlanetId);
35+
FactoryManager.TargetPlanet = FactoryManager.PLANET_NONE;
3436

3537
int reformPointsCount = factory.planet.aux.ReformSnap(packet.GroundTestPos.ToVector3(), packet.ReformSize, packet.ReformType, packet.ReformColor, reformPoints, packet.ReformIndices, factory.platformSystem, out reformCenterPoint);
3638
factory.ComputeFlattenTerrainReform(reformPoints, reformCenterPoint, packet.Radius, reformPointsCount, 3f, 1f);

0 commit comments

Comments
 (0)