mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Eradicated clones
This commit is contained in:
@ -268,9 +268,9 @@ impl<'a> System<'a> for Sys {
|
||||
};
|
||||
local_emitter.append(&mut state_update.local_events);
|
||||
server_emitter.append(&mut state_update.server_events);
|
||||
if let Some(ref inv_manip) = state_update.modify_loadout {
|
||||
// TODO: Delete this clone, somehow...
|
||||
server_emitter.emit(ServerEvent::InventoryManip(j.entity, inv_manip.clone()));
|
||||
if let Some(loadout_manip) = state_update.modify_loadout {
|
||||
server_emitter
|
||||
.emit(ServerEvent::InventoryManip(j.entity, loadout_manip.into()));
|
||||
}
|
||||
incorporate_update(&mut tuple, state_update);
|
||||
}
|
||||
|
Reference in New Issue
Block a user