Skip to content

Commit

Permalink
when multiple items are being received at once send proper index for …
Browse files Browse the repository at this point in the history
…each item, instead of just starting index over and over.
  • Loading branch information
KonoTyran committed Jul 25, 2024
1 parent 876d2d8 commit e1a5e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/koifysh/archipelago/ItemManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void receiveItems(ArrayList<NetworkItem> ids, int index) {
item.itemName = dp.getItem(item.itemID, client.getGame());
item.locationName = dp.getLocation(item.locationID, client.getSlotInfo().get(item.playerID).game);
item.playerName = client.getRoomInfo().getPlayer(myTeam,item.playerID).alias;
client.getEventManager().callEvent(new ReceiveItemEvent(item, index));
client.getEventManager().callEvent(new ReceiveItemEvent(item, i));
}

this.index = receivedItems.size();
Expand Down

0 comments on commit e1a5e28

Please sign in to comment.