Skip to content

Commit

Permalink
Use correct packet type/base class for LOCKER_REPLY handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed May 31, 2024
1 parent 46151a7 commit 6582873
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EOLib/PacketHandlers/Locker/LockerReplyHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace EOLib.PacketHandlers.Locker
/// Handles LOCKER_REPLY from server for adding an item to locker
/// </summary>
[AutoMappedType]
public class LockerReplyHandler : LockerGetHandler
public class LockerReplyHandler : LockerModifyHandler<LockerReplyServerPacket>
{
public override PacketAction Action => PacketAction.Reply;

Expand All @@ -23,9 +23,9 @@ public LockerReplyHandler(IPlayerInfoProvider playerInfoProvider,
{
}

public override bool HandlePacket(LockerGetServerPacket packet)
public override bool HandlePacket(LockerReplyServerPacket packet)
{
Handle(packet.TakenItem.Id, packet.TakenItem.Amount, packet.Weight, packet.LockerItems);
Handle(packet.DepositedItem.Id, packet.DepositedItem.Amount, packet.Weight, packet.LockerItems);
return true;
}
}
Expand Down

0 comments on commit 6582873

Please sign in to comment.