diff --git a/module/macro.js b/module/macro.js index 35a8203..4f07cbf 100644 --- a/module/macro.js +++ b/module/macro.js @@ -8,7 +8,7 @@ export async function createWorldbuildingMacro(data, slot) { const command = `const roll = new Roll("${data.roll}", actor ? actor.getRollData() : {}); roll.toMessage({speaker, flavor: "${data.label}"});`; - let macro = game.macros.find(m => (m.name === item.label) && (m.command === command)); + let macro = game.macros.find(m => (m.name === data.label) && (m.command === command)); if (!macro) { macro = await Macro.create({ name: data.label, diff --git a/system.json b/system.json index 557ba09..874b25c 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "worldbuilding", "title": "Simple World-Building", "description": "A minimalist game system which provides configurable Actor and Item templates to support free-form system agnostic game-play.", - "version": "0.6.1", + "version": "0.6.2", "minimumCoreVersion": "0.8.9", "compatibleCoreVersion": "9", "author": "Atropos", @@ -22,6 +22,6 @@ "secondaryTokenAttribute": "power", "url": "https://gitlab.com/foundrynet/worldbuilding/", "manifest": "https://gitlab.com/foundrynet/worldbuilding/raw/0.6.x/system.json", - "download": "https://gitlab.com/foundrynet/worldbuilding/-/archive/release-061/worldbuilding-release-061.zip", + "download": "https://gitlab.com/foundrynet/worldbuilding/-/archive/release-062/worldbuilding-release-062.zip", "license": "LICENSE.txt" }