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
466488ca
Unverified
Commit
466488ca
authored
Aug 24, 2022
by
Melledy
Browse files
Prevent material type from being null
parent
fbf3dbbf
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/excels/ItemData.java
View file @
466488ca
...
...
@@ -120,6 +120,9 @@ public class ItemData extends GameResource {
if
(
this
.
getFurnitureGadgetID
()
!=
null
)
{
this
.
furnitureGadgetID
=
this
.
furnitureGadgetID
.
stream
().
filter
(
x
->
x
>
0
).
toList
();
}
// Prevent material type from being null
this
.
materialType
=
this
.
materialType
==
null
?
MaterialType
.
MATERIAL_NONE
:
this
.
materialType
;
}
@Getter
...
...
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