Resource Auto Stacking

This commit is contained in:
2024-05-13 18:12:30 -05:00
parent b8abe94a8c
commit 15136518a3
3 changed files with 3 additions and 20 deletions
@@ -445,8 +445,6 @@ public class ClientMessagePump implements NetMsgHandler {
dispatch = Dispatch.borrow(player, msg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
itemManager.StackResources();
}
private static void transferItemFromVaultToInventory(TransferItemFromVaultToInventoryMsg msg, ClientConnection origin) {
@@ -460,8 +458,6 @@ public class ClientMessagePump implements NetMsgHandler {
if (player.getAccount() == null)
return;
player.getAccount().transferItemFromVaultToInventory(msg, origin);
player.getCharItemManager().StackResources();
}
//call this if the transfer fails server side to kick the item back to inventory from vault
@@ -994,10 +990,6 @@ public class ClientMessagePump implements NetMsgHandler {
ChatManager.chatGroupInfoCanSee(player, text);
}
if(item.getItemBase().getType().equals(ItemType.RESOURCE)){
player.getCharItemManager().StackResources();
}
} catch (Exception e) {
Logger.info(e.getMessage());
} finally {
@@ -1614,9 +1606,6 @@ public class ClientMessagePump implements NetMsgHandler {
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
itemMan.updateInventory();
}
if(buy.getItemBase().getType().equals(ItemType.RESOURCE)){
itemMan.StackResources();
}
} finally {
origin.buyLock.unlock();
}