mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-06 18:17:00 +01: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