Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
7bacd8ab
Commit
7bacd8ab
authored
Apr 28, 2022
by
Kengxxiao
Committed by
Melledy
Apr 28, 2022
Browse files
do not save virtual item
parent
ed98ab15
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/inventory/Inventory.java
View file @
7bacd8ab
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment