Browse Source

fix banks

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
79a9bfd606
  1. 19
      src/engine/net/client/ClientMessagePump.java

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

@ -340,16 +340,18 @@ public class ClientMessagePump implements NetMsgHandler { @@ -340,16 +340,18 @@ public class ClientMessagePump implements NetMsgHandler {
if (player == null)
return;
if(msg.getNumItems() < 1) {
ChatManager.chatSystemInfo(player, "You Have Attempted To Dupe. Please Don't");
return;//catch gold dupe for negative numbers
}
if (!NPCVaultBankRangeCheck(player, origin, "bank"))
return;
CharacterItemManager itemManager = player.getCharItemManager();
if(msg.getNumItems() < 1 && itemManager.getItemByUUID(msg.getUUID()).getItemBaseID() == 7) {
ChatManager.chatSystemInfo(player, "You Have Attempted To Dupe. Please Don't");
return;//catch gold dupe for negative numbers
}
if (itemManager == null)
return;
@ -402,16 +404,17 @@ public class ClientMessagePump implements NetMsgHandler { @@ -402,16 +404,17 @@ public class ClientMessagePump implements NetMsgHandler {
if (player == null)
return;
if(msg.getNumItems() < 1) {
ChatManager.chatSystemInfo(player, "You Have Attempted To Dupe. Please Don't");
return;//catch gold dupe for negative numbers
}
if (!NPCVaultBankRangeCheck(player, origin, "bank"))
return;
CharacterItemManager itemManager = player.getCharItemManager();
if(msg.getNumItems() < 1 && itemManager.getItemByUUID(msg.getUUID()).getItemBaseID() == 7) {
ChatManager.chatSystemInfo(player, "You Have Attempted To Dupe. Please Don't");
return;//catch gold dupe for negative numbers
}
if (itemManager == null)
return;

Loading…
Cancel
Save