Fix EventManagerHook (#1968)

This commit is contained in:
Dongjia "toka" Zhang 2024-03-25 13:04:41 +01:00 committed by GitHub
parent 4d3c6a3b9a
commit 3cc8ea0336
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -615,7 +615,7 @@ where
for<'a> E::Observers: Deserialize<'a>, for<'a> E::Observers: Deserialize<'a>,
Z: ExecutionProcessor<E::Observers, State = S> + EvaluatorObservers<E::Observers>, Z: ExecutionProcessor<E::Observers, State = S> + EvaluatorObservers<E::Observers>,
{ {
if self.hooks.pre_exec_all(state, client_id, &event)? { if !self.hooks.pre_exec_all(state, client_id, &event)? {
return Ok(()); return Ok(());
} }
match event { match event {