Skip to content

Commit

Permalink
Merge pull request #400 from PhantomGamers/patch-foundation-error-fix
Browse files Browse the repository at this point in the history
Fix error on client when foundations are built by host
  • Loading branch information
sp00ktober authored Jul 26, 2021
2 parents 3996675 + fd08c43 commit 4f88a2c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4f88a2c

Please sign in to comment.