Temporarily make it so that the attribute items don't cause the sheet to break during rendering

This commit is contained in:
Oliver 2026-04-20 21:28:07 -06:00
parent b0a3d972f0
commit 11f9e407a3

View file

@ -343,6 +343,18 @@ export class PlayerSheet extends
}; };
async _prepareItem(item) { async _prepareItem(item) {
if (item.type !== "generic") {
return {
uuid: item.uuid,
img: item.img,
name: item.name,
equipped: false,
quantity: 0,
weight: 0,
isExpanded: false,
canExpand: false,
};
}
const ctx = { const ctx = {
uuid: item.uuid, uuid: item.uuid,
img: item.img, img: item.img,