Merge branch 'sam/possess-fix' into 'master'

Fix possession for animation work purposes.

See merge request veloren/veloren!3142
This commit is contained in:
Samuel Keiffer 2022-01-25 18:03:40 +00:00
commit ac42b184f5

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;
}