fixed a bug where if a group member picks up an item, then the player picks up an item, it would display the incorrect number of items picked up. example: group member picks up an apple, then player picks up an apple, the ui would display that the player picked up two apples, instead of the group member picking up one and the player picking up one

This commit is contained in:
Hudson
2023-04-06 12:40:08 -05:00
parent 73cd4e5136
commit 4881d2fd8b

View File

@ -169,6 +169,7 @@ impl<'a> Widget for LootScroller<'a> {
if *t >= oldest_merge_pulse {
if let Some(i) = self.new_messages.iter().position(|m| {
m.item.item_definition_id() == message.item.item_definition_id()
&& m.taken_by == message.taken_by
}) {
self.new_messages[i].amount += message.amount;
false