]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Objects that only have a basic description won't have extra line in examine text...
authorMervill <mervills.email@gmail.com>
Tue, 30 Jul 2024 00:57:46 +0000 (17:57 -0700)
committerGitHub <noreply@github.com>
Tue, 30 Jul 2024 00:57:46 +0000 (17:57 -0700)
objects that only have a basic description won't have extra line in examine text

Content.Shared/Examine/ExamineSystemShared.cs

index 682018949ab6050a01b765049100bd99e6d26926..f0406c539891da27ab604c23ca640f5d33c93066 100644 (file)
@@ -352,7 +352,7 @@ namespace Content.Shared.Examine
             var totalMessage = new FormattedMessage(Message);
             parts.Sort(Comparison);
 
-            if (_hasDescription)
+            if (_hasDescription && parts.Count > 0)
             {
                 totalMessage.PushNewline();
             }