mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-30 09:50:51 +01:00
Fixed trading untradable items
This commit is contained in:
parent
c3721a671c
commit
82d456a630
@ -17,7 +17,7 @@ public class TradeOfferItemEvent extends MessageHandler {
|
|||||||
|
|
||||||
HabboItem item = this.client.getHabbo().getInventory().getItemsComponent().getHabboItem(this.packet.readInt());
|
HabboItem item = this.client.getHabbo().getInventory().getItemsComponent().getHabboItem(this.packet.readInt());
|
||||||
|
|
||||||
if (item == null)
|
if (item == null || !item.getBaseItem().allowTrade())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
trade.offerItem(this.client.getHabbo(), item);
|
trade.offerItem(this.client.getHabbo(), item);
|
||||||
|
Loading…
Reference in New Issue
Block a user