Commit b971ce1f authored by Remco's avatar Remco

Fixed exploit that made it possible to trade untradable items

parent 4cd0b8bf
......@@ -21,7 +21,7 @@ public class TradeOfferMultipleItemsEvent extends MessageHandler {
int count = this.packet.readInt();
for (int i = 0; i < count; i++) {
HabboItem item = this.client.getHabbo().getInventory().getItemsComponent().getHabboItem(this.packet.readInt());
if (item != null) {
if (item != null && item.getBaseItem().allowTrade()) {
items.add(item);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment