Browse Source

Handlers created for vault interactions

combat-2
MagicBot 8 months ago
parent
commit
ae3423b99b
  1. 4
      src/engine/net/client/handlers/ItemToVaultMsgHandler.java

4
src/engine/net/client/handlers/ItemToVaultMsgHandler.java

@ -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;
} }

Loading…
Cancel
Save