From e0a38d8f0e54fe4e8e27e6577a2ae345df6eabfd Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sun, 8 Jan 2023 09:43:53 +0100 Subject: [PATCH] fix(packets): make gidx family sub packet nullable, family icons optional --- Packets/NosSmooth.Packets/Server/Families/GidxPacket.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Packets/NosSmooth.Packets/Server/Families/GidxPacket.cs b/Packets/NosSmooth.Packets/Server/Families/GidxPacket.cs index e6bd46a..4b66af6 100644 --- a/Packets/NosSmooth.Packets/Server/Families/GidxPacket.cs +++ b/Packets/NosSmooth.Packets/Server/Families/GidxPacket.cs @@ -6,6 +6,7 @@ using NosSmooth.Packets.Enums.Entities; using NosSmooth.Packets.Server.Character; +using NosSmooth.PacketSerializer.Abstractions; using NosSmooth.PacketSerializer.Abstractions.Attributes; using NosSmooth.PacketSerializer.Abstractions.Common; @@ -29,11 +30,11 @@ public record GidxPacket [PacketIndex(1)] long EntityId, [PacketIndex(2, InnerSeparator = '.')] - FamilySubPacket FamilySubPacket, + NullableWrapper FamilySubPacket, [PacketIndex(3)] NameString? FamilyName, [PacketIndex(4)] NameString? FamilyCustomRank, - [PacketListIndex(5, ListSeparator = '|')] - IReadOnlyList FamilyIcons + [PacketListIndex(5, ListSeparator = '|', IsOptional = true)] + IReadOnlyList? FamilyIcons ) : IPacket; \ No newline at end of file -- 2.49.0