From 82d456a630b678fa28c24b5d29abd2871f7b37b0 Mon Sep 17 00:00:00 2001 From: Remco Date: Wed, 30 Dec 2020 19:07:56 +0100 Subject: [PATCH] Fixed trading untradable items --- .../eu/habbo/messages/incoming/trading/TradeOfferItemEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/messages/incoming/trading/TradeOfferItemEvent.java b/src/main/java/com/eu/habbo/messages/incoming/trading/TradeOfferItemEvent.java index 25fb39cb..85b521d3 100644 --- a/src/main/java/com/eu/habbo/messages/incoming/trading/TradeOfferItemEvent.java +++ b/src/main/java/com/eu/habbo/messages/incoming/trading/TradeOfferItemEvent.java @@ -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);