|
|
@ -104,16 +104,16 @@ public class TransferItemFromInventoryToEquipHandler extends AbstractClientMsgHa |
|
|
|
|
|
|
|
|
|
|
|
private static void forceTransferFromEquipToInventory(TransferItemFromInventoryToEquipMsg msg, ClientConnection origin, String reason) { |
|
|
|
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; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
TransferItemFromEquipToInventoryMsg back = new TransferItemFromEquipToInventoryMsg(pc, msg.getSlotNumber()); |
|
|
|
TransferItemFromEquipToInventoryMsg back = new TransferItemFromEquipToInventoryMsg(player, msg.getSlotNumber()); |
|
|
|
Dispatch dispatch = Dispatch.borrow(pc, back); |
|
|
|
Dispatch dispatch = Dispatch.borrow(player, back); |
|
|
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); |
|
|
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); |
|
|
|
|
|
|
|
|
|
|
|
ChatManager.chatInfoError(pc, "Can't equip item: " + reason); |
|
|
|
ChatManager.chatInfoError(player, "Can't equip item: " + reason); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |