This commit is contained in:
WBHarry 2025-11-25 00:21:32 +01:00
parent de9a66e1bc
commit 38868fdab6
23 changed files with 86 additions and 104 deletions

View file

@ -446,10 +446,8 @@ export function itemIsIdentical(a, b) {
return compendiumSource && name & description;
}
export function waitForDiceSoNice(message, update) {
if (game.modules.get('dice-so-nice')?.active) {
game.dice3d.waitFor3DAnimationByMessageID(message.id).then(async () => await update());
} else {
update();
export async function waitForDiceSoNice(message) {
if (message && game.modules.get('dice-so-nice')?.active) {
await game.dice3d.waitFor3DAnimationByMessageID(message.id);
}
}