CSHARP-16 Fix printing bug

This commit is contained in:
Andrew Cooper
2022-07-14 00:24:10 +10:00
parent a648ebf044
commit 98344717f7
4 changed files with 35 additions and 20 deletions

View File

@@ -24,7 +24,10 @@ internal class Neck : ParentPart
public void AppendTo(StringBuilder builder, char feelerCharacter)
{
_head.AppendTo(builder, feelerCharacter);
builder.AppendLine(" N N").AppendLine(" N N");
if (IsPresent)
{
_head.AppendTo(builder, feelerCharacter);
builder.AppendLine(" N N").AppendLine(" N N");
}
}
}