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