From f63ad2f57587d2e309938206546cb775c8318ea2 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Fri, 19 Jul 2024 22:46:24 -0400 Subject: [PATCH] Correctly ignore blocks replaced, fixes #2253 --- .../java/me/pikamug/quests/listeners/BukkitBlockListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/me/pikamug/quests/listeners/BukkitBlockListener.java b/core/src/main/java/me/pikamug/quests/listeners/BukkitBlockListener.java index 72da3525e..c4c131a87 100644 --- a/core/src/main/java/me/pikamug/quests/listeners/BukkitBlockListener.java +++ b/core/src/main/java/me/pikamug/quests/listeners/BukkitBlockListener.java @@ -107,7 +107,7 @@ public class BukkitBlockListener implements Listener { if (progress < 0) { break; } - final ItemStack is = currentStage.getBlocksToBreak().get(i); + final ItemStack is = currentStage.getBlocksToPlace().get(i); if (event.getBlock().getType().equals(is.getType()) && is.getAmount() > 0) { ItemStack goal = new ItemStack(is.getType(), 64); for (final ItemStack stack : currentStage.getBlocksToPlace()) { @@ -140,7 +140,7 @@ public class BukkitBlockListener implements Listener { if (progress < 0) { break; } - final ItemStack is = currentStage.getBlocksToBreak().get(i); + final ItemStack is = currentStage.getBlocksToPlace().get(i); if (event.getBlock().getType().equals(is.getType()) && is.getAmount() > 0) { ItemStack goal = new ItemStack(is.getType(), 64); for (final ItemStack stack : ((BukkitStage) quester.getCurrentStage(cq)).getBlocksToPlace()) {