Revert "Purge uses of TransformComponent.Anchored.set. Also adds parentheses." (#35332)
This commit is contained in:
@@ -31,7 +31,7 @@ public sealed partial class DungeonJob
|
||||
|
||||
if (reservedTiles.Contains(node))
|
||||
continue;
|
||||
|
||||
|
||||
if (dunGen.TileMask is not null)
|
||||
{
|
||||
if (!dunGen.TileMask.Contains(((ContentTileDefinition) _tileDefManager[tileRef.Value.Tile.TypeId]).ID))
|
||||
@@ -59,7 +59,7 @@ public sealed partial class DungeonJob
|
||||
|
||||
if (!xform.Comp.Anchored)
|
||||
{
|
||||
_transform.AnchorEntity((ent, xform));
|
||||
_transform.AnchorEntity(ent, xform);
|
||||
}
|
||||
|
||||
// TODO: Engine bug with SpawnAtPosition
|
||||
|
||||
@@ -94,7 +94,7 @@ public sealed partial class DungeonJob
|
||||
var xform = xformQuery.Get(ent);
|
||||
|
||||
if (!xform.Comp.Anchored)
|
||||
_transform.AnchorEntity((ent, xform));
|
||||
_transform.AnchorEntity(ent, xform);
|
||||
|
||||
await SuspendDungeon();
|
||||
if (!ValidateResume())
|
||||
|
||||
@@ -195,7 +195,7 @@ public sealed partial class DungeonSystem
|
||||
if (anchored && !childXform.Anchored)
|
||||
_transform.AnchorEntity((ent, childXform), (gridUid, grid));
|
||||
else if (!anchored && childXform.Anchored)
|
||||
_transform.Unanchor((ent, childXform));
|
||||
_transform.Unanchor(ent, childXform);
|
||||
}
|
||||
|
||||
// Load decals
|
||||
|
||||
Reference in New Issue
Block a user