Fix possession for animation work purposes.

This commit is contained in:
Sam 2022-01-25 12:29:05 -05:00
parent 3bee4ef0d1
commit e6bef416b4

View File

@ -223,6 +223,11 @@ impl NetSync for Combo {
}
impl NetSync for ActiveAbilities {
// When in debug, sync from all entities. This allows animation work to be done
// when possessing entities
#[cfg(debug_assertions)]
const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity;
#[cfg(not(debug_assertions))]
const SYNC_FROM: SyncFrom = SyncFrom::ClientEntity;
}