mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
parent
4881d2fd8b
commit
e03406b103
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user