mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10: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()) {
|
synchronized (this.client.getHabbo().getInventory().getItemsComponent().getItems()) {
|
||||||
TIntObjectMap<HabboItem> items = new TIntObjectHashMap<>();
|
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();
|
TIntObjectIterator<HabboItem> iterator = this.client.getHabbo().getInventory().getItemsComponent().getItems().iterator();
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user