do not save virtual item

This commit is contained in:
Kengxxiao 2022-04-28 20:54:47 +08:00 committed by Melledy
parent ed98ab152d
commit 7bacd8ab70

View File

@ -218,7 +218,8 @@ public class Inventory implements Iterable<GameItem> {
}
// Set ownership and save to db
item.save();
if (item.getItemData().getItemType() != ItemType.ITEM_VIRTUAL)
item.save();
return item;
}