]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix blank newline on empty examine groups (#33813)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Tue, 10 Dec 2024 13:45:20 +0000 (00:45 +1100)
committerGitHub <noreply@github.com>
Tue, 10 Dec 2024 13:45:20 +0000 (14:45 +0100)
Construction always grants a blank newline even if it not currently constructing.

Content.Shared/Examine/ExamineSystemShared.cs

index 1e97e8f3405b150871d96b8a35498a68d11f0aa7..4372b7d5169978a058d89856698db4d09495dd8d 100644 (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;
         }