From 18f571e3eea6b1f196b8919e0cda1e00e66d8182 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Sat, 3 Aug 2024 17:20:30 -0400 Subject: [PATCH] Correctly populate goal object amount --- .../me/pikamug/quests/quests/components/BukkitObjective.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/me/pikamug/quests/quests/components/BukkitObjective.java b/core/src/main/java/me/pikamug/quests/quests/components/BukkitObjective.java index 28f22bb6e..8872c6bae 100644 --- a/core/src/main/java/me/pikamug/quests/quests/components/BukkitObjective.java +++ b/core/src/main/java/me/pikamug/quests/quests/components/BukkitObjective.java @@ -58,8 +58,8 @@ public class BukkitObjective implements Objective { this.goal = ((BukkitCountableMob) goalObj).getCount(); } else if (goalObj instanceof Integer) { this.goal = (int) goalObj; - } else if (progressObj instanceof BlockItemStack) { - this.goal = ((BlockItemStack) progressObj).getAmount(); + } else if (goalObj instanceof BlockItemStack) { + this.goal = ((BlockItemStack) goalObj).getAmount(); } else { this.goal = 0; }