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

Loading…
Cancel
Save