Revert "Purge uses of TransformComponent.Anchored.set. Also adds parentheses." (#35332)

This commit is contained in:
metalgearsloth
2025-02-21 00:12:12 +11:00
committed by GitHub
parent a4001fba1b
commit fa35c9623d
22 changed files with 34 additions and 35 deletions

View File

@@ -146,7 +146,7 @@ public abstract class SharedChameleonProjectorSystem : EntitySystem
var xform = Transform(uid);
if (xform.Anchored)
_xform.Unanchor((uid, xform));
_xform.Unanchor(uid, xform);
else
_xform.AnchorEntity((uid, xform));
@@ -241,7 +241,7 @@ public abstract class SharedChameleonProjectorSystem : EntitySystem
var xform = Transform(ent);
xform.NoLocalRotation = false;
_xform.Unanchor((ent, xform));
_xform.Unanchor(ent, xform);
Del(ent.Comp.Disguise);
RemComp<ChameleonDisguisedComponent>(ent);