diff --git a/Assets/Scripts/ServerShared/ShipAuthoring.cs b/Assets/Scripts/ServerShared/ShipAuthoring.cs index e266193be..1907a1dab 100644 --- a/Assets/Scripts/ServerShared/ShipAuthoring.cs +++ b/Assets/Scripts/ServerShared/ShipAuthoring.cs @@ -499,7 +499,7 @@ public static class ShipAuthoringStore if (anchor.Role == "radiator-mesh") throw new InvalidOperationException($"{ship.Id}: {anchor.Role} anchor {anchor.Id} may not ride a joint."); if (!RigChains.Actuates(anchor.Role)) - throw new InvalidOperationException($"{ship.Id}: {anchor.Role} anchor {anchor.Id} may not name a joint; only a weapon mount or a thruster emitter, or an assembly's root, rides one."); + throw new InvalidOperationException($"{ship.Id}: {anchor.Role} anchor {anchor.Id} may not name a joint; only a weapon mount, a thruster emitter or an assembly root rides one."); if (!byId.ContainsKey(anchor.Joint)) throw new InvalidOperationException($"{ship.Id}: {anchor.Role} anchor {anchor.Id} names an unknown joint."); } diff --git a/tests/Aetheria.Shared.Tests/ShipRigTests.cs b/tests/Aetheria.Shared.Tests/ShipRigTests.cs index 657a2f03b..351fd288b 100644 --- a/tests/Aetheria.Shared.Tests/ShipRigTests.cs +++ b/tests/Aetheria.Shared.Tests/ShipRigTests.cs @@ -175,7 +175,7 @@ public sealed class ShipRigTests : IDisposable ship = Armed("j"); ship.Visual.Joints.Add(Joint("j", null, (Up, -180f, 180f))); ship.Visual.Anchors.Single(anchor => anchor.Id == "g0.muzzle").Joint = "j"; - Assert.Contains("only a weapon mount or a thruster emitter rides one", Refusal(ship)); + Assert.Contains("only a weapon mount, a thruster emitter or an assembly root rides one", Refusal(ship)); var thruster = Thrusting((null, 90f, "ghost")); Assert.Contains("thruster-emitter anchor t0 names an unknown joint", Refusal(thruster));