Purge uses of TransformComponent.Anchored.set. Also adds parentheses. (#34938)

This commit is contained in:
TemporalOroboros
2025-02-20 04:06:39 -08:00
committed by GitHub
parent c8dce26dbb
commit a4001fba1b
22 changed files with 35 additions and 34 deletions

View File

@@ -114,7 +114,7 @@ public sealed partial class AnchorableSystem : EntitySystem
var xform = Transform(uid);
RaiseLocalEvent(uid, new BeforeUnanchoredEvent(args.User, used));
_transformSystem.Unanchor(uid, xform);
_transformSystem.Unanchor((uid, xform));
RaiseLocalEvent(uid, new UserUnanchoredEvent(args.User, used));
_popup.PopupClient(Loc.GetString("anchorable-unanchored"), uid, args.User);
@@ -165,7 +165,7 @@ public sealed partial class AnchorableSystem : EntitySystem
RaiseLocalEvent(uid, new BeforeAnchoredEvent(args.User, used));
if (!xform.Anchored)
_transformSystem.AnchorEntity(uid, xform);
_transformSystem.AnchorEntity((uid, xform));
RaiseLocalEvent(uid, new UserAnchoredEvent(args.User, used));