diff --git a/Server/PacketHandlers/CharacterDeletionHandler.cs b/Server/PacketHandlers/CharacterDeletionHandler.cs index a9de7c1..871f133 100644 --- a/Server/PacketHandlers/CharacterDeletionHandler.cs +++ b/Server/PacketHandlers/CharacterDeletionHandler.cs @@ -28,7 +28,7 @@ public class CharacterDeletionHandler : IPacketHandler var character = await _wonderkingContext.Characters.FirstOrDefaultAsync(x => x.Name == packet.Name && x.Account.Id == authSession.AccountId) ; - var response = new CharacterDeleteResponsePacket { IsDeleted = 0 }; + var response = new CharacterDeleteResponsePacket { HasToBeZero = 0 }; if (character == null) { await authSession.SendAsync(response); diff --git a/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs b/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs index e6226d3..cb74f71 100644 --- a/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs +++ b/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs @@ -7,7 +7,7 @@ namespace Wonderking.Packets.Outgoing; [PacketId(OperationCode.CharacterDeletionResponse)] public class CharacterDeleteResponsePacket : IPacket { - public required byte IsDeleted { get; set; } + public required byte HasToBeZero { get; set; } public void Deserialize(byte[] data) { @@ -17,7 +17,7 @@ public class CharacterDeleteResponsePacket : IPacket public byte[] Serialize() { Span data = stackalloc byte[1]; - data[0] = IsDeleted; + data[0] = HasToBeZero; return data.ToArray(); } }