mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 15:36:27 +01:00
Merge branch 'fix/#834-trade-untradable-items' into 'dev'
#834 Fixed ability to trade untradable items See merge request morningstar/Arcturus-Community!359
This commit is contained in:
commit
0fc9760894
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user