|
|
@ -24,19 +24,15 @@ public class ItemToVaultMsgHandler extends AbstractClientMsgHandler { |
|
|
|
protected boolean _handleNetMsg(ClientNetMsg baseMsg, ClientConnection origin) throws MsgSendException { |
|
|
|
protected boolean _handleNetMsg(ClientNetMsg baseMsg, ClientConnection origin) throws MsgSendException { |
|
|
|
|
|
|
|
|
|
|
|
ItemToVaultMsg msg = (ItemToVaultMsg) baseMsg; |
|
|
|
ItemToVaultMsg msg = (ItemToVaultMsg) baseMsg; |
|
|
|
|
|
|
|
|
|
|
|
PlayerCharacter player = origin.getPlayerCharacter(); |
|
|
|
PlayerCharacter player = origin.getPlayerCharacter(); |
|
|
|
|
|
|
|
|
|
|
|
if (player == null) |
|
|
|
if (player == null) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (player.getAccount() == null) |
|
|
|
if (player.getAccount() == null) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
player.getAccount().transferItemFromInventoryToVault(msg, origin); |
|
|
|
player.getAccount().transferItemFromInventoryToVault(msg, origin); |
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|