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 13:43:11 -05:00
parent 4881d2fd8b
commit e03406b103

View File

@ -169,7 +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
&& m.taken_by == message.taken_by
}) {
self.new_messages[i].amount += message.amount;
false