Browse Source

cant inventory junk more than 10 mil

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
f2e4e8062e
  1. 5
      src/engine/net/client/ClientMessagePump.java

5
src/engine/net/client/ClientMessagePump.java

@ -574,10 +574,13 @@ public class ClientMessagePump implements NetMsgHandler {
return; return;
if (i.canDestroy) { if (i.canDestroy) {
if (itemManager.delete(i) == true) {
int value = i.getItemBase().value; int value = i.getItemBase().value;
if(i.getItemBase().isRune()) if(i.getItemBase().isRune())
value = 500000; value = 500000;
if(sourcePlayer.getCharItemManager().getGoldInventory().getNumOfItems() + value > 10000000){
return;
}
if (itemManager.delete(i) == true) {
sourcePlayer.getCharItemManager().addGoldToInventory(value,false); sourcePlayer.getCharItemManager().addGoldToInventory(value,false);
sourcePlayer.getCharItemManager().updateInventory(); sourcePlayer.getCharItemManager().updateInventory();
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg); Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);

Loading…
Cancel
Save