|
|
@ -560,15 +560,15 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
if (!itemManager.inventoryContains(i)) |
|
|
|
if (!itemManager.inventoryContains(i)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if (i.isCanDestroy()) |
|
|
|
if (i.isCanDestroy()) { |
|
|
|
if (itemManager.delete(i) == true) { |
|
|
|
if (itemManager.delete(i) == true) { |
|
|
|
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg); |
|
|
|
|
|
|
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); |
|
|
|
|
|
|
|
int value = i.getItemBase().getBaseValue(); |
|
|
|
int value = i.getItemBase().getBaseValue(); |
|
|
|
if(sourcePlayer.getCharItemManager().getGoldInventory().getNumOfItems() + value <= 10000000) |
|
|
|
if(sourcePlayer.getCharItemManager().getGoldInventory().getNumOfItems() + value <= 10000000) |
|
|
|
sourcePlayer.getCharItemManager().addGoldToInventory(value,false); |
|
|
|
sourcePlayer.getCharItemManager().addGoldToInventory(value,true); |
|
|
|
|
|
|
|
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg); |
|
|
|
|
|
|
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static void ackBankWindowOpened(AckBankWindowOpenedMsg msg, ClientConnection origin) { |
|
|
|
private static void ackBankWindowOpened(AckBankWindowOpenedMsg msg, ClientConnection origin) { |
|
|
|