From caf708bed65f6f0ba71dee6916d750e16d3dc85c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 8 Mar 2024 13:31:18 -0500 Subject: [PATCH] Handler created for equip message. --- .../TransferItemFromInventoryToEquipHandler.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/engine/net/client/handlers/TransferItemFromInventoryToEquipHandler.java b/src/engine/net/client/handlers/TransferItemFromInventoryToEquipHandler.java index c2c0320d..bcce3d26 100644 --- a/src/engine/net/client/handlers/TransferItemFromInventoryToEquipHandler.java +++ b/src/engine/net/client/handlers/TransferItemFromInventoryToEquipHandler.java @@ -104,16 +104,16 @@ public class TransferItemFromInventoryToEquipHandler extends AbstractClientMsgHa private static void forceTransferFromEquipToInventory(TransferItemFromInventoryToEquipMsg msg, ClientConnection origin, String reason) { - PlayerCharacter pc = origin.getPlayerCharacter(); + PlayerCharacter player = origin.getPlayerCharacter(); - if (pc == null) + if (player == null) return; - TransferItemFromEquipToInventoryMsg back = new TransferItemFromEquipToInventoryMsg(pc, msg.getSlotNumber()); - Dispatch dispatch = Dispatch.borrow(pc, back); + TransferItemFromEquipToInventoryMsg back = new TransferItemFromEquipToInventoryMsg(player, msg.getSlotNumber()); + Dispatch dispatch = Dispatch.borrow(player, back); DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); - ChatManager.chatInfoError(pc, "Can't equip item: " + reason); + ChatManager.chatInfoError(player, "Can't equip item: " + reason); } } \ No newline at end of file