mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 15:00:52 +01:00
Fix empty inventories
This commit is contained in:
parent
37abd2aadb
commit
471dae3068
@ -25,6 +25,12 @@ public class RequestInventoryItemsEvent extends MessageHandler {
|
||||
|
||||
synchronized (this.client.getHabbo().getInventory().getItemsComponent().getItems()) {
|
||||
TIntObjectMap<HabboItem> items = new TIntObjectHashMap<>();
|
||||
|
||||
if (totalItems == 0) {
|
||||
this.client.sendResponse(new InventoryItemsComposer(0, 1, new TIntObjectHashMap<>()));
|
||||
return;
|
||||
}
|
||||
|
||||
TIntObjectIterator<HabboItem> iterator = this.client.getHabbo().getInventory().getItemsComponent().getItems().iterator();
|
||||
|
||||
int count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user