Construction spring cleaning (#36163)
* Construction warnings cleanup * More construction warnings cleanup * Fix failing ITests - Remove unnecessary casts and dodgy anchroing implementation. * Checking anchor status before setting * Reusing shared system call * inlining anchor setting
This commit is contained in:
@@ -280,7 +280,7 @@ public sealed partial class AnchorableSystem : EntitySystem
|
||||
private bool TileFree(EntityCoordinates coordinates, PhysicsComponent anchorBody)
|
||||
{
|
||||
// Probably ignore CanCollide on the anchoring body?
|
||||
var gridUid = coordinates.GetGridUid(EntityManager);
|
||||
var gridUid = _transformSystem.GetGrid(coordinates);
|
||||
|
||||
if (!TryComp<MapGridComponent>(gridUid, out var grid))
|
||||
return false;
|
||||
@@ -329,7 +329,7 @@ public sealed partial class AnchorableSystem : EntitySystem
|
||||
|
||||
public bool AnyUnstackablesAnchoredAt(EntityCoordinates location)
|
||||
{
|
||||
var gridUid = location.GetGridUid(EntityManager);
|
||||
var gridUid = _transformSystem.GetGrid(location);
|
||||
|
||||
if (!TryComp<MapGridComponent>(gridUid, out var grid))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user