mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 07:36:26 +01:00
Fixed item.type logic
This commit is contained in:
parent
e11c1ad972
commit
3232e7ed65
1 changed files with 2 additions and 2 deletions
|
|
@ -21,9 +21,9 @@ export default class DhHotbar extends Hotbar {
|
|||
|
||||
setupHooks() {
|
||||
Hooks.on('hotbarDrop', (bar, data, slot) => {
|
||||
if (['Item'].includes(data.type)) {
|
||||
if (data.type === 'Item') {
|
||||
const item = foundry.utils.fromUuidSync(data.uuid);
|
||||
if (typeof item === 'string') return true;
|
||||
if (item.uuid.startsWith('Compendium') || !item.isOwned || !item.isOwner) return true;
|
||||
|
||||
switch (item.type) {
|
||||
case 'ancestry':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue