diff --git a/lc-hax/Scripts/Commands/UprightCommand.cs b/lc-hax/Scripts/Commands/UprightCommand.cs index 5715e2fa..d7643bd8 100644 --- a/lc-hax/Scripts/Commands/UprightCommand.cs +++ b/lc-hax/Scripts/Commands/UprightCommand.cs @@ -5,8 +5,12 @@ class UprightCommand : ICommand { void SetObjectUpright(PlaceableShipObject shipObject) { Vector3 uprightRotation = shipObject.transform.eulerAngles; - uprightRotation.x = -90.0f; + if (uprightRotation.x == -90.0f) { + return; + } + + uprightRotation.x = -90.0f; Helper.PlaceObjectAtPosition(shipObject, shipObject.transform.position, uprightRotation); }