mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Fixed exploit that made it possible to trade untradable items
This commit is contained in:
parent
4cd0b8bf3f
commit
b971ce1f83
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user