Remove talk executions on finish which are null

This commit is contained in:
KingRainbow44 2023-05-02 21:35:42 -04:00
parent 93a3276f75
commit 3ffa0a7478
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -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"})