mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 04:57:18 +00:00
Remove talk executions on finish which are null
This commit is contained in:
parent
93a3276f75
commit
3ffa0a7478
@ -19,6 +19,14 @@ public final class TalkConfigData extends GameResource {
|
||||
@SerializedName(value="questId", alternate={"_questId"})
|
||||
private int questId;
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
this.finishExec = this.finishExec == null ? List.of() :
|
||||
this.finishExec.stream()
|
||||
.filter(x -> x.getType() != null)
|
||||
.toList();
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class TalkExecParam {
|
||||
@SerializedName(value="type", alternate={"_type"})
|
||||
|
Loading…
Reference in New Issue
Block a user