Loadout manipulations now emit a separate event from client instead of hackily intercepting inventory manipulations in common.

This commit is contained in:
Sam
2021-02-08 12:31:17 -05:00
parent f026aeb2dc
commit 1c83c5ee6f
14 changed files with 71 additions and 80 deletions

View File

@ -30,7 +30,7 @@ fn incorporate_update(tuple: &mut JoinTuple, state_update: StateUpdate) {
if tuple.6.get_unchecked() != &state_update.energy {
*tuple.6.get_mut_unchecked() = state_update.energy
};
if state_update.swap_loadout {
if state_update.swap_equipped_weapons {
let mut inventory = tuple.7.get_mut_unchecked();
let inventory = &mut *inventory;
inventory