Skip to content

Commit

Permalink
Fix call to getDefaultACtorForSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
KayelGee committed Dec 6, 2023
1 parent b278174 commit 7eae96f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "token-attacher",
"title": "Token Attacher",
"description": "Attach anything(even tokens) to tokens, so that they move when the token moves and rotate/move when the token rotates. Create prefabs and many more features, see the github readme for more details.",
"version": "4.5.14",
"version": "4.5.15",
"compatibility" :{
"minimum": 11,
"verified": 11,
Expand Down Expand Up @@ -61,6 +61,6 @@
"socket": true,
"url": "https://github.com/KayelGee/token-attacher",
"manifest": "https://raw.githubusercontent.com/KayelGee/token-attacher/master/module.json",
"download": "https://github.com/KayelGee/token-attacher/releases/download/v4.5.14/v4.5.14.zip",
"readme": "https://github.com/KayelGee/token-attacher/blob/v4.5.14/README.md"
"download": "https://github.com/KayelGee/token-attacher/releases/download/v4.5.15/v4.5.15.zip",
"readme": "https://github.com/KayelGee/token-attacher/blob/v4.5.15/README.md"
}
4 changes: 2 additions & 2 deletions scripts/token-attacher.js
Original file line number Diff line number Diff line change
Expand Up @@ -2310,7 +2310,7 @@ import {libWrapper} from './shim.js';
}
}
await Promise.all(allPromises);
const actorType = getDefaultActorForSystem();
const actorType = TokenAttacher.getDefaultActorForSystem();
actors.forEach(async actor => {
await Actor.create({type: actorType, img:actor.img, name:actor.name, folder:await parentMap[actor.folder].value, prototypeToken: actor.prototypeToken ?? actor.token, flags: actor.flags});
});
Expand All @@ -2330,7 +2330,7 @@ import {libWrapper} from './shim.js';
const parentMap = {null:{value:null}};
let worldCompendium = await CompendiumCollection.createCompendium({label:label, name: slugified_name, type:"Actor"});
let creates = [];
const actorType = getDefaultActorForSystem();
const actorType = TokenAttacher.getDefaultActorForSystem();
actors.forEach(async actor => {
creates.push({type: actorType, img:actor.img, name:actor.name, prototypeToken: actor.prototypeToken ?? actor.token, flags: actor.flags});
});
Expand Down

0 comments on commit 7eae96f

Please sign in to comment.