~ruther/NosSmooth

836be95a83fe500cf3e8ff5af9bda0b71ff95758 — Rutherther 2 years ago 5abe375
fix(packets): nullability of family
M Packets/NosSmooth.Packets/Server/Character/FamilySubPacket.cs => Packets/NosSmooth.Packets/Server/Character/FamilySubPacket.cs +4 -4
@@ 17,8 17,8 @@ namespace NosSmooth.Packets.Server.Character;
[PacketHeader(null, PacketSource.Server)]
public record FamilySubPacket
(
    [PacketIndex(0, AfterSeparator = '.')]
    string? FamilyId,
    [PacketIndex(1, IsOptional = true)]
    short? Title
    [PacketIndex(0)]
    string FamilyId,
    [PacketIndex(1)]
    short Title
) : IPacket;
\ No newline at end of file

M Packets/NosSmooth.Packets/Server/Maps/InPlayerSubPacket.cs => Packets/NosSmooth.Packets/Server/Maps/InPlayerSubPacket.cs +2 -1
@@ 9,6 9,7 @@ using NosSmooth.Packets.Enums.Entities;
using NosSmooth.Packets.Enums.Players;
using NosSmooth.Packets.Server.Character;
using NosSmooth.Packets.Server.Weapons;
using NosSmooth.PacketSerializer.Abstractions;
using NosSmooth.PacketSerializer.Abstractions.Attributes;

namespace NosSmooth.Packets.Server.Maps;


@@ 91,7 92,7 @@ public record InPlayerSubPacket
    [PacketIndex(17)]
    UpgradeRareSubPacket ArmorUpgradeRareSubPacket,
    [PacketIndex(18, InnerSeparator = '.')]
    FamilySubPacket FamilySubPacket,
    NullableWrapper<FamilySubPacket> FamilySubPacket,
    [PacketIndex(19)]
    string? FamilyName,
    [PacketIndex(20)]

Do not follow this link