mirror of
https://github.com/Anime-Game-Servers/Grasscutter-Quests.git
synced 2024-11-23 12:39:49 +00:00
[Fix] nullfix at player born
This commit is contained in:
parent
0daf58c1e3
commit
21dec2fec0
@ -17,6 +17,7 @@ import lombok.AccessLevel;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.FieldDefaults;
|
||||
import lombok.val;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@ -116,9 +117,11 @@ public class PlayerActivityData {
|
||||
}
|
||||
|
||||
public static WatcherInfo init(ActivityWatcher watcher) {
|
||||
val watcherData= watcher.getActivityWatcherData();
|
||||
val progress = watcherData!=null ? watcherData.getProgress() : 0;
|
||||
return WatcherInfo.of()
|
||||
.watcherId(watcher.getWatcherId())
|
||||
.totalProgress(watcher.getActivityWatcherData().getProgress())
|
||||
.totalProgress(progress)
|
||||
.isTakenReward(false)
|
||||
.build();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user