mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed persistence error that would occur when dropping a modular item and then picking up that same item in the same persistence cycle.
This commit is contained in:
parent
5acb8cf74e
commit
539c3307a6
@ -758,6 +758,10 @@ impl Item {
|
||||
} else {
|
||||
self.item_id = Arc::new(AtomicCell::new(None));
|
||||
}
|
||||
// Reset item id for every component of an item too
|
||||
for component in self.components.iter_mut() {
|
||||
component.reset_item_id();
|
||||
}
|
||||
}
|
||||
|
||||
/// Removes the unique identity of an item - used when dropping an item on
|
||||
|
Loading…
Reference in New Issue
Block a user