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
45c08c58
Unverified
Commit
45c08c58
authored
Aug 31, 2022
by
Melledy
Browse files
Clean up OpenStateData onLoad logic
parent
4a675cc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/excels/OpenStateData.java
View file @
45c08c58
...
...
@@ -42,15 +42,12 @@ public class OpenStateData extends GameResource {
// Add this open state to the global list.
GameData
.
getOpenStateList
().
add
(
this
);
// Clean up cond.
List
<
OpenStateCond
>
cleanedConds
=
new
ArrayList
<>();
for
(
var
c
:
this
.
cond
)
{
if
(
c
.
getCondType
()
!=
null
)
{
cleanedConds
.
add
(
c
);
}
// Remove any empty conditions
if
(
this
.
cond
!=
null
)
{
this
.
cond
.
removeIf
(
c
->
c
.
getCondType
()
==
null
);
}
else
{
this
.
cond
=
new
ArrayList
<>();
}
this
.
cond
=
cleanedConds
;
}
}
...
...
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