oops, fix bug modeling pet with no items

This commit is contained in:
Emi Matchu 2020-10-06 06:38:21 -07:00
parent 6ec6bbec57
commit bb812a2b81

View file

@ -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(
(_) =>