Use folders
This commit is contained in:
@@ -95,7 +95,7 @@ Hooks.once("ready", async () => {
|
||||
|
||||
if (!game.user.isGM) return
|
||||
|
||||
if (game.scenes.getName("Map")) return
|
||||
if (game.scenes.getName("Noxian Expanse")) return
|
||||
|
||||
const pack = game.packs.get("fvtt-machine-gods-noxian-expanse.scenes")
|
||||
if (!pack) {
|
||||
@@ -104,9 +104,9 @@ Hooks.once("ready", async () => {
|
||||
}
|
||||
|
||||
const index = await pack.getIndex()
|
||||
const entry = index.find(s => s.name === "Map")
|
||||
const entry = index.find(s => s.name === "Noxian Expanse")
|
||||
if (!entry) {
|
||||
console.warn(`${SYSTEM_ID} | Map scene not found in compendium`)
|
||||
console.warn(`${SYSTEM_ID} | Noxian Expanse scene not found in compendium`)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user