From 5257a59e8ffd7de66c2fe1e0cb702fc09404d42d Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Sat, 20 Jan 2024 09:53:20 -0330 Subject: [PATCH] optimize checking of progress --- .../heracles/common/handlers/progress/QuestsProgress.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/earth/terrarium/heracles/common/handlers/progress/QuestsProgress.java b/common/src/main/java/earth/terrarium/heracles/common/handlers/progress/QuestsProgress.java index 0df7b1be..f628d905 100644 --- a/common/src/main/java/earth/terrarium/heracles/common/handlers/progress/QuestsProgress.java +++ b/common/src/main/java/earth/terrarium/heracles/common/handlers/progress/QuestsProgress.java @@ -36,8 +36,8 @@ public QuestsProgress(Map 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));