Skip to content

Commit

Permalink
fix button not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
Plushtoast committed Jul 5, 2024
1 parent ac8846c commit 85405d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"title": "The Dark Eye 5th Ed. - Optolith Connector",
"description": "Import heros created with the famous <a href=\"https://optolith.app\" target=\"_blank\">Optolith</a> character generator into Foundry VTT.",
"version": "6.0.0",
"version": "6.0.1",
"url": "https://github.com/Plushtoast/dsa5-optolith",
"manifest": "https://raw.githubusercontent.com/Plushtoast/dsa5-optolith/main/module.json",
"download": "https://github.com/Plushtoast/dsa5-optolith/releases/download/6.0.0/dsa5-optolith-6.0.0.zip",
"download": "https://github.com/Plushtoast/dsa5-optolith/releases/download/6.0.1/dsa5-optolith-6.0.1.zip",
"languages": [{
"lang": "de",
"name": "Deutsch",
Expand Down
2 changes: 1 addition & 1 deletion modules/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Hooks.once("ready", () => {
})

Hooks.on("renderActorDirectory", (app, html, data) => {
if (game.user.can("create")) {
if (game.user.can("ACTOR_CREATE")) {
const button = $(`<button data-tooltip="Optolith.hint1"><i class="fas fa-file-import"></i>Optolith</button>`)
html.find(".header-actions").append(button)
button.click(() => { game.dsa5.optolith.openDialog() });
Expand Down

0 comments on commit 85405d1

Please sign in to comment.