Fix Hook init usage in v12

This commit is contained in:
LeRatierBretonnien 2025-01-14 00:23:04 +01:00
parent 8e578c6566
commit 72a9752820

View File

@ -87,9 +87,9 @@ export class SystemReveDeDragon {
static start() { static start() {
const system = new SystemReveDeDragon() const system = new SystemReveDeDragon()
Hooks.once('init', async () => await system.onInit()) Hooks.once('init', () => system.onInit())
Hooks.once('diceSoNiceReady', (dice3d) => RdDDice.diceSoNiceReady(dice3d)) Hooks.once('diceSoNiceReady', (dice3d) => RdDDice.diceSoNiceReady(dice3d))
Hooks.once('ready', async () => await system.onReady()) Hooks.once('ready', () => system.onReady())
} }
constructor() { constructor() {