Skip to content

Commit 4f88a2c

Browse files
authored
Merge pull request #400 from PhantomGamers/patch-foundation-error-fix
Fix error on client when foundations are built by host
2 parents 3996675 + fd08c43 commit 4f88a2c

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)