From 1249967a700fd9163dd6c8583cb55d82979fa3d8 Mon Sep 17 00:00:00 2001 From: Haxxer Date: Sun, 13 Oct 2024 11:01:34 +0100 Subject: [PATCH] Fixed minor issue with bankers --- src/applications/auctioneer/Components/BottomBar.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/applications/auctioneer/Components/BottomBar.svelte b/src/applications/auctioneer/Components/BottomBar.svelte index 3df4ec5..70cca47 100644 --- a/src/applications/auctioneer/Components/BottomBar.svelte +++ b/src/applications/auctioneer/Components/BottomBar.svelte @@ -19,7 +19,11 @@ function getValidActors(){ validActors = game.actors.filter(actor => { return actor.isOwner - || ($flagStore.allowBankerVaults && actor.getFlag("item_piles_bankers", "vaultUserId") === game.userId); + || ( + game.modules.get("item_piles_bankers")?.active + && $flagStore.allowBankerVaults + && actor.getFlag("item_piles_bankers", "vaultUserId") === game.userId + ); }).map(actor => { const actorFlagData = game.itempiles.API.getActorFlagData(actor); const selectable = actor.isOwner || lib.getActiveGMs().length;