From cccd28dde3f282d0b0a08612df6db8387b69a582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Fri, 21 Jan 2022 13:35:07 +0100 Subject: [PATCH] fix(packets): make correct fields nullable --- .../Server/Entities/InEquipmentSubPacket.cs | 20 +++++++++---------- .../Server/Entities/InNonPlayerSubPacket.cs | 4 ++-- .../Server/Groups/PinitSubPacket.cs | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Packets/NosSmooth.Packets/Server/Entities/InEquipmentSubPacket.cs b/Packets/NosSmooth.Packets/Server/Entities/InEquipmentSubPacket.cs index c8685f9..a5f3608 100644 --- a/Packets/NosSmooth.Packets/Server/Entities/InEquipmentSubPacket.cs +++ b/Packets/NosSmooth.Packets/Server/Entities/InEquipmentSubPacket.cs @@ -28,23 +28,23 @@ namespace NosSmooth.Packets.Server.Entities; public record InEquipmentSubPacket ( [PacketIndex(0)] - long HatVNum, + long? HatVNum, [PacketIndex(1)] - long ArmorVNum, + long? ArmorVNum, [PacketIndex(2)] - long MainWeaponVNum, + long? MainWeaponVNum, [PacketIndex(3)] - long SecondaryWeaponVNum, + long? SecondaryWeaponVNum, [PacketIndex(4)] - long MaskVNum, + long? MaskVNum, [PacketIndex(5)] - long Fairy, + long? Fairy, [PacketIndex(6)] - long CostumeSuitVNum, + long? CostumeSuitVNum, [PacketIndex(7)] - long CostumeHatVNum, + long? CostumeHatVNum, [PacketIndex(8)] - short WeaponSkin, + short? WeaponSkin, [PacketIndex(9)] - short WingSkin + short? WingSkin ) : IPacket; \ No newline at end of file diff --git a/Packets/NosSmooth.Packets/Server/Entities/InNonPlayerSubPacket.cs b/Packets/NosSmooth.Packets/Server/Entities/InNonPlayerSubPacket.cs index 547a850..16b73be 100644 --- a/Packets/NosSmooth.Packets/Server/Entities/InNonPlayerSubPacket.cs +++ b/Packets/NosSmooth.Packets/Server/Entities/InNonPlayerSubPacket.cs @@ -52,13 +52,13 @@ public record InNonPlayerSubPacket [PacketIndex(4)] short GroupEffect, [PacketIndex(5)] - long OwnerId, + long? OwnerId, [PacketIndex(6)] SpawnEffect SpawnEffect, [PacketIndex(7)] bool IsSitting, [PacketIndex(8)] - long MorphVNum, + long? MorphVNum, [PacketIndex(9)] NameString? Name, [PacketIndex(10)] diff --git a/Packets/NosSmooth.Packets/Server/Groups/PinitSubPacket.cs b/Packets/NosSmooth.Packets/Server/Groups/PinitSubPacket.cs index f386f60..1f47ced 100644 --- a/Packets/NosSmooth.Packets/Server/Groups/PinitSubPacket.cs +++ b/Packets/NosSmooth.Packets/Server/Groups/PinitSubPacket.cs @@ -41,7 +41,7 @@ public record PinitSubPacket [PacketIndex(4)] NameString? Name, [PacketIndex(5)] - int Unknown, + int? Unknown, [PacketIndex(6)] long VNum, [PacketIndex(7)] -- 2.49.0