mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 22:22:51 +00:00
do not save virtual item
This commit is contained in:
parent
ed98ab152d
commit
7bacd8ab70
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user