Fix blank newline on empty examine groups (#33813)

Construction always grants a blank newline even if it not currently constructing.
This commit is contained in:
metalgearsloth
2024-12-11 00:45:20 +11:00
committed by GitHub
parent 7ed32f2c7d
commit 2b487baea0

View File

@@ -409,8 +409,10 @@ namespace Content.Shared.Examine
private void PopGroup()
{
DebugTools.Assert(_currentGroupPart != null);
if (_currentGroupPart != null)
if (_currentGroupPart != null && !_currentGroupPart.Message.IsEmpty)
{
Parts.Add(_currentGroupPart);
}
_currentGroupPart = null;
}