if (tItem.amount < 1) {
player.setSuspiciousPlayer(true);
player.setRequiresOfferUpdate(true);
continue;
}
ItemDef def = tItem.getDef();
if (!def.canTrade() && !player.isMod()) {
player.getActionSender().sendMessage(
def.getName()
+ " cannot be traded with other players");
player.setRequiresOfferUpdate(true);
continue;
}
tradeOffer.add(tItem.id, tItem.amount, false);