Fixed examine things (#308)

This commit is contained in:
DamianX
2019-08-19 22:27:25 +02:00
committed by Pieter-Jan Briers
parent 4dcbf28714
commit be4197351a
3 changed files with 5 additions and 5 deletions

View File

@@ -62,20 +62,19 @@ namespace Content.Server.GameObjects.EntitySystems
message.PushColor(Color.DarkGray);
var subMessage = new FormattedMessage();
//Add component statuses from components that report one
foreach (var examineComponents in entity.GetAllComponents<IExamine>())
{
var subMessage = new FormattedMessage();
examineComponents.Examine(subMessage);
if (subMessage.Tags.Count == 0)
continue;
if (doNewline)
{
message.AddText("\n");
doNewline = false;
}
message.AddMessage(subMessage);
doNewline = true;
}
message.Pop();