isnt that liek an Anti Dupe ?
|
so basically when 2 players trade with each other and one of them decline, then both of them Freezes like they can't move and stuff.
public void declineTrade(boolean tellOther) {
RlastSlot = 0;
TlastSlot = 0;
closeInterface();
client other = getClient(trade_reqId);
if (tellOther && validClient(trade_reqId)) {
other.sendMessage(playerName + " declined the trade");
other.declineTrade(false);
}
for (GameItem item : offeredItems) {
if (item.amount < 1)
continue;
if (item.stackable) {
addItem(item.id, item.amount);
} else {
for (int i = 0; i < item.amount; i++) {
addItem(item.id, 1);
}
}
}
canOffer = true;
tradeConfirmed = false;
tradeConfirmed2 = false;
offeredItems.clear();
inTrade = false;
trade_reqId = 0;
}
van someone help me pls((
isnt that liek an Anti Dupe ?
try changing other.declineTrade(false); to true
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |