Skip to content

Commit

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

0 comments on commit ea2bea6

Please sign in to comment.