Skip to content

Commit

Permalink
goddamnit
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Sep 10, 2024
1 parent ea2bea6 commit c6c906b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/dnd5e.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default {
"ITEM_TYPE_HANDLERS": {
"GLOBAL": {
[CONSTANTS.ITEM_TYPE_METHODS.IS_CONTAINED]: ({ item }) => {
const itemData = item.toObject();
const itemData = item instanceof Item ? item.toObject() : item;
return !!itemData?.system?.container;
},
[CONSTANTS.ITEM_TYPE_METHODS.IS_CONTAINED_PATH]: "system.container"
Expand Down

0 comments on commit c6c906b

Please sign in to comment.