Replace GridEntityId with Owner (#12743)
This commit is contained in:
@@ -393,7 +393,7 @@ public sealed partial class CargoSystem
|
||||
|
||||
foreach (var grid in _mapManager.GetAllMapGrids(xform.MapID))
|
||||
{
|
||||
var worldAABB = xformQuery.GetComponent(grid.GridEntityId).WorldMatrix.TransformBox(grid.LocalAABB);
|
||||
var worldAABB = xformQuery.GetComponent(grid.Owner).WorldMatrix.TransformBox(grid.LocalAABB);
|
||||
aabb = aabb?.Union(worldAABB) ?? worldAABB;
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ public sealed class PricingSystem : EntitySystem
|
||||
|
||||
List<(double, EntityUid)> mostValuable = new();
|
||||
|
||||
var value = AppraiseGrid(mapGrid.GridEntityId, null, (uid, price) =>
|
||||
var value = AppraiseGrid(mapGrid.Owner, null, (uid, price) =>
|
||||
{
|
||||
mostValuable.Add((price, uid));
|
||||
mostValuable.Sort((i1, i2) => i2.Item1.CompareTo(i1.Item1));
|
||||
|
||||
Reference in New Issue
Block a user