Skip to content

Commit

Permalink
fix(FieldGenerators): Don't show nonsense popup (#30469)
Browse files Browse the repository at this point in the history
* .
  • Loading branch information
Brandon Hu authored Aug 25, 2024
1 parent d067e80 commit cf6f783
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,12 @@ private void RemoveConnections(Entity<ContainmentFieldGeneratorComponent> genera
ChangeFieldVisualizer(value.Item1);
}
component.Connections.Clear();
if (component.IsConnected)
_popupSystem.PopupEntity(Loc.GetString("comp-containment-disconnected"), uid, PopupType.LargeCaution);
component.IsConnected = false;
ChangeOnLightVisualizer(generator);
ChangeFieldVisualizer(generator);
_adminLogger.Add(LogType.FieldGeneration, LogImpact.Medium, $"{ToPrettyString(uid)} lost field connections"); // Ideally LogImpact would depend on if there is a singulo nearby
_popupSystem.PopupEntity(Loc.GetString("comp-containment-disconnected"), uid, PopupType.LargeCaution);
}

#endregion
Expand Down

0 comments on commit cf6f783

Please sign in to comment.