Skip to content

Commit 375f70f

Browse files
erwan-jolyclaude
andauthored
fix: NsTeSTPacket.LeadingBlank defaults to empty string (20.0.1) (#459)
The field models the literal double space vanosilla emits after the `NsTeST` header; without a non-null default the serializer emits "-" for an unset property, producing "NsTeST - 0 …" on the wire. Make the property non-nullable with an empty-string default so consumers don't have to remember to set it. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ac57e46 commit 375f70f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/NosCore.Packets/NosCore.Packets.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<RepositoryUrl>https://github.com/NosCoreIO/NosCore.Packets.git</RepositoryUrl>
1313
<PackageIconUrl></PackageIconUrl>
1414
<PackageTags>nostale, noscore, chickenapi, nostale private server source, nostale emulator</PackageTags>
15-
<Version>20.0.0</Version>
15+
<Version>20.0.1</Version>
1616
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
1717
<Description>NosCore's Packets (Nostale packets) defined over classes</Description>
1818
<PackageLicenseExpression>MIT</PackageLicenseExpression>

src/NosCore.Packets/ServerPackets/Login/NsTeSTPacket.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace NosCore.Packets.ServerPackets.Login
1616
public class NsTestPacket : PacketBase
1717
{
1818
[PacketIndex(0)]
19-
public string? LeadingBlank { get; set; }
19+
public string LeadingBlank { get; set; } = string.Empty;
2020

2121
[PacketIndex(1)]
2222
public RegionType RegionType { get; set; }

0 commit comments

Comments
 (0)