Skip to content

Commit

Permalink
optimize checking of progress
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatGravyBoat committed Jan 20, 2024
1 parent 16071a3 commit 5257a59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public QuestsProgress(Map<String, QuestProgress> progress) {
for (QuestTask<?, ?, ?> task : quest.tasks().values()) {
if (task.isCompatibleWith(taskType)) {
TaskProgress<?> progress = questProgress.getTask(task);
Tag before = progress.progress().copy();
if (progress.isComplete()) continue;
Tag before = progress.progress().copy();
progress.addProgress(taskType, ModUtils.cast(task), input);
if (progress.isComplete()) {
HeraclesEvents.TaskCompleteListener.fire(TaskEventTarget.create(task, player));
Expand Down

0 comments on commit 5257a59

Please sign in to comment.