Commit 7bacd8ab authored by Kengxxiao's avatar Kengxxiao Committed by Melledy
Browse files

do not save virtual item

parent ed98ab15
...@@ -218,6 +218,7 @@ public class Inventory implements Iterable<GameItem> { ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment