fixed a bug with the sidebar entry
parent
e1911cdd47
commit
646c9c6d16
|
|
@ -18,7 +18,7 @@ Hooks.on("getActorContextOptions", (application, menuItems) => {
|
|||
name: "Import from XML",
|
||||
icon: '<i class="fas fa-file"></i>',
|
||||
callback: (li) => {
|
||||
const actorId = li.data("document-id")
|
||||
const actorId = li.getAttribute("data-entry-id")
|
||||
const actor = game.actors.get(actorId)
|
||||
actor.import()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue