Fix other weightless crash (#8973)
This commit is contained in:
@@ -34,9 +34,11 @@ namespace Content.Server.Gravity.EntitySystems
|
||||
public void AddAlert(AlertsComponent status)
|
||||
{
|
||||
var xform = Transform(status.Owner);
|
||||
var alerts = _alerts.GetOrNew(xform.GridID);
|
||||
|
||||
alerts.Add(status);
|
||||
if (xform.GridUid != null)
|
||||
{
|
||||
var alerts = _alerts.GetOrNew(xform.GridUid.Value);
|
||||
alerts.Add(status);
|
||||
}
|
||||
|
||||
if (_mapManager.TryGetGrid(xform.GridUid, out var grid))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user