Revert "Purge uses of TransformComponent.Anchored.set. Also adds parentheses." (#35332)
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user