Skip to content

Commit

Permalink
Trenches - Fix orientation of built trenches (#112)
Browse files Browse the repository at this point in the history
Remove duplicate SnapAndOrient
  • Loading branch information
Kexanone authored Dec 11, 2024
1 parent 26696a0 commit d05eafa
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ modded class SCR_CampaignBuildingNetworkComponent : ScriptComponent
EntitySpawnParams params = new EntitySpawnParams();
params.TransformMode = ETransformMode.WORLD;
params.Transform = transform;
SCR_TerrainHelper.SnapAndOrientToTerrain(params.Transform);
// Forces to spawn as buildable
SCR_EditorLinkComponent.IgnoreSpawning(true);

Expand All @@ -40,4 +39,4 @@ modded class SCR_CampaignBuildingNetworkComponent : ScriptComponent

compositionComponent.SetBuilderId(playerController.GetPlayerId());
}
}
}

0 comments on commit d05eafa

Please sign in to comment.