Temporarily make it so that the attribute items don't cause the sheet to break during rendering
This commit is contained in:
parent
b0a3d972f0
commit
11f9e407a3
1 changed files with 12 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue