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 {
...
@@ -42,15 +42,12 @@ public class OpenStateData extends GameResource {
// Add this open state to the global list.
// Add this open state to the global list.
GameData
.
getOpenStateList
().
add
(
this
);
GameData
.
getOpenStateList
().
add
(
this
);
// Clean up cond.
// Remove any empty conditions
List
<
OpenStateCond
>
cleanedConds
=
new
ArrayList
<>();
if
(
this
.
cond
!=
null
)
{
for
(
var
c
:
this
.
cond
)
{
this
.
cond
.
removeIf
(
c
->
c
.
getCondType
()
==
null
);
if
(
c
.
getCondType
()
!=
null
)
{
}
else
{
cleanedConds
.
add
(
c
);
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