From 80ab8816c6459d7a0f4f835df67b442b7f7d0872 Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Sun, 8 Aug 2021 22:51:16 +0100 Subject: Fix votingplugin (closes #228) --- .../quests/bukkit/tasktype/type/dependent/VotingPluginVoteType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bukkit/src') diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/dependent/VotingPluginVoteType.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/dependent/VotingPluginVoteType.java index 4e0d705b..7cc4ace8 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/dependent/VotingPluginVoteType.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/dependent/VotingPluginVoteType.java @@ -71,7 +71,7 @@ public final class VotingPluginVoteType extends BukkitTaskType { progressVotes = (int) taskProgress.getProgress(); } - taskProgress.setProgress(votesNeeded + 1); + taskProgress.setProgress(progressVotes + 1); if (((int) taskProgress.getProgress()) >= votesNeeded) { taskProgress.setCompleted(true); -- cgit v1.2.3-70-g09d2