Fixed exploit that made it possible to trade untradable items

This commit is contained in:
Remco 2021-03-02 12:21:15 +01:00
parent 4cd0b8bf3f
commit b971ce1f83

View File

@ -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);
}
}