oops, fix bug modeling pet with no items
This commit is contained in:
parent
6ec6bbec57
commit
bb812a2b81
1 changed files with 4 additions and 0 deletions
|
@ -240,6 +240,10 @@ async function saveSwfAssetModelingData(customPetData, context) {
|
|||
// the item. (We do this separately for pet states, so that we can get
|
||||
// the pet state ID first.)
|
||||
const itemAssetInserts = inserts.filter((i) => i.type === "object");
|
||||
if (itemAssetInserts.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const qs = itemAssetInserts
|
||||
.map(
|
||||
(_) =>
|
||||
|
|
Loading…
Reference in a new issue