Remove implicit GridId conversions (#8975)
This commit is contained in:
@@ -71,7 +71,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
|
||||
private void OnAirtightReAnchor(EntityUid uid, AirtightComponent airtight, ref ReAnchorEvent args)
|
||||
{
|
||||
foreach (var gridId in new[] { args.OldGrid, args.GridId })
|
||||
foreach (var gridId in new[] { args.OldGrid, args.Grid })
|
||||
{
|
||||
// Update and invalidate new position.
|
||||
airtight.LastPosition = (gridId, args.TilePos);
|
||||
|
||||
@@ -109,10 +109,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
|
||||
private void OnGridRemoved(GridRemovalEvent ev)
|
||||
{
|
||||
if (_overlay.ContainsKey(ev.GridId))
|
||||
{
|
||||
_overlay.Remove(ev.GridId);
|
||||
}
|
||||
_overlay.Remove(ev.EntityUid);
|
||||
}
|
||||
|
||||
private void OnPlayerStatusChanged(object? sender, SessionStatusEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user