forked from MagicBane/Server
create system allowing players to delete items form inventory for gold value (junk hut in bag)
This commit is contained in:
@@ -564,6 +564,8 @@ public class ClientMessagePump implements NetMsgHandler {
|
|||||||
if (itemManager.delete(i)) {
|
if (itemManager.delete(i)) {
|
||||||
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);
|
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);
|
||||||
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ItemBase ib = i.getItemBase();
|
ItemBase ib = i.getItemBase();
|
||||||
|
|
||||||
@@ -588,9 +590,6 @@ public class ClientMessagePump implements NetMsgHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
itemManager.addGoldToInventory(value, false);
|
itemManager.addGoldToInventory(value, false);
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ackBankWindowOpened(AckBankWindowOpenedMsg msg, ClientConnection origin) {
|
private static void ackBankWindowOpened(AckBankWindowOpenedMsg msg, ClientConnection origin) {
|
||||||
|
|||||||
Reference in New Issue
Block a user