fix(FieldGenerators): Don't show nonsense popup (#30469)

* .
This commit is contained in:
Brandon Hu
2024-08-25 18:21:32 +00:00
committed by GitHub
parent d067e80100
commit cf6f7830aa

View File

@@ -166,11 +166,12 @@ public sealed class ContainmentFieldGeneratorSystem : EntitySystem
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