From fa1fbe4877088b3c7353b86b2f820b140f64a4f3 Mon Sep 17 00:00:00 2001 From: John Downey Date: Sat, 9 Apr 2022 18:56:18 -0500 Subject: [PATCH] Fix macros --- src/module/macros.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/macros.js b/src/module/macros.js index 259d946..8ce7b75 100644 --- a/src/module/macros.js +++ b/src/module/macros.js @@ -17,7 +17,7 @@ export async function createAcksMacro(data, slot) { // Create the macro command const command = `game.acks.rollItemMacro("${item.name}");`; - let macro = game.macros.entities.find(m => (m.name === item.name) && (m.command === command)); + let macro = game.macros.find(m => (m.name === item.name) && (m.command === command)); if ( !macro ) { macro = await Macro.create({ name: item.name,