stack resources completed

This commit is contained in:
2024-05-14 22:03:45 -05:00
parent 9e85c1e361
commit 5e61ef26e1
2 changed files with 16 additions and 16 deletions
+5 -5
View File
@@ -579,7 +579,7 @@ public class ClientMessagePump implements NetMsgHandler {
}
if (itemManager.delete(i) == true) {
sourcePlayer.getCharItemManager().addGoldToInventory(value,false);
sourcePlayer.getCharItemManager().updateInventory();
sourcePlayer.getCharItemManager().StackResources();
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
}
@@ -921,7 +921,7 @@ public class ClientMessagePump implements NetMsgHandler {
DispatchMessage.dispatchMsgToInterestArea(corpse, msg, DispatchChannel.PRIMARY, MBServerStatics.CHARACTER_LOAD_RANGE, false, true);
//player.getCharItemManager().updateInventory();
//player.getCharItemManager().StackResources();
}
//TODO send group loot message if player is grouped and visible
@@ -978,7 +978,7 @@ public class ClientMessagePump implements NetMsgHandler {
dispatch = Dispatch.borrow(player, newItemMsg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.PRIMARY);
//player.getCharItemManager().updateInventory();
//player.getCharItemManager().StackResources();
}
//TODO send group loot message if player is grouped and visible
@@ -1464,7 +1464,7 @@ public class ClientMessagePump implements NetMsgHandler {
if (buy != null) {
me.transferEnchants(buy);
itemMan.addItemToInventory(buy);
//itemMan.updateInventory();
//itemMan.StackResources();
}
}
}
@@ -1604,7 +1604,7 @@ public class ClientMessagePump implements NetMsgHandler {
// msg.setItemID(buy.getObjectUUID());
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
itemMan.updateInventory();
itemMan.StackResources();
}
} finally {
origin.buyLock.unlock();