#RESOLVED: How to prevent actor sheet update by Hook
1 messages · Page 1 of 1 (latest)
Well, I thought I'd actually already be returning false. Or did you mean like this?
Yeah, you need to pass the return back out to return it
Thanks for the confirmation! However, this solution above simply does not work 😦 The hook itself is working fine, but the return value has no effect. I dug into the docs a bit at https://foundryvtt.wiki/en/development/guides/Hooks_Listening_Calling, and I hope that my case is NOT one of the peculiarities described there, where a return seems not to be supported for unknown reasons?
Oh, wait, I spotted your issue. Your hook function is async. Hooks don't wait for async stuff, so it's moving on before you end up returning.
You're right! I found out exactly that just a sec ago by trying!
Hurray... it works now!!