Remove obsolete transform call (#24217)
* Remove obsolete transform call Shrimple PR also fixed bad flatpack call that would break on non-standard tilesizes. * Update calls * weh
This commit is contained in:
@@ -67,8 +67,9 @@ public abstract class SharedFlatpackSystem : EntitySystem
|
||||
}
|
||||
|
||||
var buildPos = _map.TileIndicesFor(grid, gridComp, xform.Coordinates);
|
||||
var intersecting = _entityLookup.GetEntitiesIntersecting(buildPos.ToEntityCoordinates(grid, _mapManager).Offset(new Vector2(0.5f, 0.5f))
|
||||
, LookupFlags.Dynamic | LookupFlags.Static);
|
||||
var coords = _map.ToCenterCoordinates(grid, buildPos);
|
||||
|
||||
var intersecting = _entityLookup.GetEntitiesIntersecting(coords, LookupFlags.Dynamic | LookupFlags.Static);
|
||||
|
||||
// todo make this logic smarter.
|
||||
// This should eventually allow for shit like building microwaves on tables and such.
|
||||
|
||||
Reference in New Issue
Block a user