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

@@ -181,7 +181,7 @@ public sealed class NukeSystem : EntitySystem
var xform = Transform(uid);
if (xform.Anchored)
{
_transform.Unanchor(uid, xform);
_transform.Unanchor((uid, xform));
_itemSlots.SetLock(uid, component.DiskSlot, true);
}
else
@@ -203,7 +203,7 @@ public sealed class NukeSystem : EntitySystem
}
_transform.SetCoordinates(uid, xform, xform.Coordinates.SnapToGrid());
_transform.AnchorEntity(uid, xform);
_transform.AnchorEntity((uid, xform));
_itemSlots.SetLock(uid, component.DiskSlot, false);
}
@@ -490,7 +490,7 @@ public sealed class NukeSystem : EntitySystem
if (!nukeXform.Anchored)
{
// Admin command shenanigans, just make sure.
_transform.AnchorEntity(uid, nukeXform);
_transform.AnchorEntity((uid, nukeXform));
}
component.Status = NukeStatus.ARMED;