Fix macros

master
John Downey 2022-04-09 18:56:18 -05:00
parent 1d9b5a35d5
commit fa1fbe4877
1 changed files with 1 additions and 1 deletions

View File

@ -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,