Replace obsolete FromMap calls with ToCoordinates (#35304)
This commit is contained in:
@@ -81,7 +81,7 @@ public sealed class MagnetPickupSystem : EntitySystem
|
||||
// game state handling we can't show a lerp animation for it.
|
||||
var nearXform = Transform(near);
|
||||
var nearMap = _transform.GetMapCoordinates(near, xform: nearXform);
|
||||
var nearCoords = EntityCoordinates.FromMap(moverCoords.EntityId, nearMap, _transform, EntityManager);
|
||||
var nearCoords = _transform.ToCoordinates(moverCoords.EntityId, nearMap);
|
||||
|
||||
if (!_storage.Insert(uid, near, out var stacked, storageComp: storage, playSound: !playedSound))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user