From 24f45c487e9fd19ebf313b8d4cebaf570c102fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sun, 15 Jan 2023 11:12:22 +0100 Subject: [PATCH] fix(packets): make upgrade rare sub packet nullable --- Packets/NosSmooth.Packets/Server/Inventory/EquipPacket.cs | 4 ++-- Packets/NosSmooth.Packets/Server/Maps/InPlayerSubPacket.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Packets/NosSmooth.Packets/Server/Inventory/EquipPacket.cs b/Packets/NosSmooth.Packets/Server/Inventory/EquipPacket.cs index dd95cf2..0933b08 100644 --- a/Packets/NosSmooth.Packets/Server/Inventory/EquipPacket.cs +++ b/Packets/NosSmooth.Packets/Server/Inventory/EquipPacket.cs @@ -20,9 +20,9 @@ namespace NosSmooth.Packets.Server.Inventory; public record EquipPacket ( [PacketIndex(0)] - UpgradeRareSubPacket WeaponUpgradeRareSubPacket, + UpgradeRareSubPacket? WeaponUpgradeRareSubPacket, [PacketIndex(1)] - UpgradeRareSubPacket ArmorUpgradeRareSubPacket, + UpgradeRareSubPacket? ArmorUpgradeRareSubPacket, [PacketListIndex(2, ListSeparator = ' ', InnerSeparator = '.')] IReadOnlyList EquipSubPacket ) : IPacket; \ No newline at end of file diff --git a/Packets/NosSmooth.Packets/Server/Maps/InPlayerSubPacket.cs b/Packets/NosSmooth.Packets/Server/Maps/InPlayerSubPacket.cs index f21542a..25abdac 100644 --- a/Packets/NosSmooth.Packets/Server/Maps/InPlayerSubPacket.cs +++ b/Packets/NosSmooth.Packets/Server/Maps/InPlayerSubPacket.cs @@ -88,9 +88,9 @@ public record InPlayerSubPacket [PacketIndex(15)] short Unknown3, [PacketIndex(16)] - UpgradeRareSubPacket WeaponUpgradeRareSubPacket, + UpgradeRareSubPacket? WeaponUpgradeRareSubPacket, [PacketIndex(17)] - UpgradeRareSubPacket ArmorUpgradeRareSubPacket, + UpgradeRareSubPacket? ArmorUpgradeRareSubPacket, [PacketIndex(18, InnerSeparator = '.')] NullableWrapper FamilySubPacket, [PacketIndex(19)] -- 2.49.0