fix: Fixes ValueStringBuilder empty ctor issue (#1035)

This commit is contained in:
Kamron Batman 2022-05-27 17:49:36 -07:00 • committed by GitHub
parent fe225003c6
commit 3b7e3c2fb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 14 deletions

View file

@ -46,7 +46,7 @@ namespace Server.Ethics.Evil
++enemyCount;
}
using var sb = new ValueStringBuilder();
using var sb = ValueStringBuilder.Create();
sb.Append("You sense ");
sb.Append(enemyCount == 0 ? "no" : enemyCount.ToString());

View file

@ -46,7 +46,7 @@ namespace Server.Ethics.Hero
++enemyCount;
}
using var sb = new ValueStringBuilder();
using var sb = ValueStringBuilder.Create();
sb.Append("You sense ");
sb.Append(enemyCount == 0 ? "no" : enemyCount.ToString());