mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-26 18:45:35 +08:00
Revert previous; fix data parsing issue
This commit is contained in:
parent
fb686b2afc
commit
486582b81c
@ -58,17 +58,21 @@ public class MainQuestData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void onLoad() {
|
public void onLoad() {
|
||||||
this.talks = talks.stream().filter(Objects::nonNull).toList();
|
if (this.talks != null)
|
||||||
|
this.talks = this.talks.stream()
|
||||||
|
.filter(Objects::nonNull).toList();
|
||||||
Arrays.stream(this.subQuests).forEach(quest -> {
|
Arrays.stream(this.subQuests).forEach(quest -> {
|
||||||
var questData = GameData.getQuestDataMap().get(quest.getSubId());
|
var questData = GameData.getQuestDataMap().get(quest.getSubId());
|
||||||
if (questData != null)
|
if (questData != null) questData.applyFrom(quest);
|
||||||
questData.applyFrom(quest);
|
|
||||||
else
|
|
||||||
GameData.getQuestDataMap().put(quest.getSubId(), quest);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class SubQuestData extends QuestData { }
|
@Data public static class SubQuestData {
|
||||||
|
private int subId;
|
||||||
|
private int order;
|
||||||
|
private boolean isMpBlock;
|
||||||
|
private boolean isRewind, finishParent;
|
||||||
|
}
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@Entity
|
@Entity
|
||||||
|
Loading…
Reference in New Issue
Block a user