mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-27 08:53:27 +08:00
do not save virtual item
This commit is contained in:
parent
bb645671f2
commit
b37c5d89eb
@ -218,7 +218,8 @@ public class Inventory implements Iterable<GameItem> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set ownership and save to db
|
// Set ownership and save to db
|
||||||
item.save();
|
if (item.getItemData().getItemType() != ItemType.ITEM_VIRTUAL)
|
||||||
|
item.save();
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user