Merge branch 'hudson/fix_loot_scroller_bug' into 'master'

fixed a visual ui bug when picking up items

See merge request veloren/veloren!3860
This commit is contained in:
Christof Petig 2023-04-06 20:44:02 +00:00
commit 564530f5e2

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