Fixed trading untradable items

This commit is contained in:
Remco 2020-12-30 19:07:56 +01:00
parent c3721a671c
commit 82d456a630

View File

@ -17,7 +17,7 @@ public class TradeOfferItemEvent extends MessageHandler {
HabboItem item = this.client.getHabbo().getInventory().getItemsComponent().getHabboItem(this.packet.readInt());
if (item == null)
if (item == null || !item.getBaseItem().allowTrade())
return;
trade.offerItem(this.client.getHabbo(), item);