mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-03-29 03:52:37 +02:00
do not save virtual item
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user