mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-09-10 17:33:55 +03:00
do not save virtual item
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user