|
7 | 7 | // A shim for the libWrapper library
|
8 | 8 | export let libWrapper = undefined;
|
9 | 9 |
|
10 |
| -export const VERSIONS = [1,12,1]; |
| 10 | +export const VERSIONS = [1,12,2]; |
11 | 11 | export const TGT_SPLIT_RE = new RegExp("([^.[]+|\\[('([^'\\\\]|\\\\.)+?'|\"([^\"\\\\]|\\\\.)+?\")\\])", 'g');
|
12 | 12 | export const TGT_CLEANUP_RE = new RegExp("(^\\['|'\\]$|^\\[\"|\"\\]$)", 'g');
|
13 | 13 |
|
@@ -90,9 +90,10 @@ Hooks.once('init', () => {
|
90 | 90 | if(match?.length !== 3) return [null,null];
|
91 | 91 | const dirs = match[2].split('/');
|
92 | 92 | if(match[1] === 'worlds') return dirs.find(n => n && game.world.id === n) ? [game.world.id, game.world.title] : [null,null];
|
93 |
| - if(match[1] === 'systems') return dirs.find(n => n && game.system.id === n) ? [game.system.id, game.system.data.title] : [null,null]; |
| 93 | + if(match[1] === 'systems') return dirs.find(n => n && game.system.id === n) ? [game.system.id, game.system.title ?? game.system.data.title] : [null,null]; |
94 | 94 | const id = dirs.find(n => n && game.modules.has(n));
|
95 |
| - return [id, game.modules.get(id)?.data?.title]; |
| 95 | + const mdl = game.modules.get(id); |
| 96 | + return [id, mdl?.title ?? mdl?.data?.title]; |
96 | 97 | })();
|
97 | 98 |
|
98 | 99 | if(!PACKAGE_ID || !PACKAGE_TITLE) {
|
|
0 commit comments