Server events directly emitted in states now.

This commit is contained in:
Sam
2021-02-07 12:15:29 -05:00
parent 6a1e583d45
commit f026aeb2dc
10 changed files with 20 additions and 17 deletions

View File

@ -268,10 +268,6 @@ 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(loadout_manip) = state_update.modify_loadout {
server_emitter
.emit(ServerEvent::InventoryManip(j.entity, loadout_manip.into()));
}
incorporate_update(&mut tuple, state_update);
}