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