From 03c174a09a0e242e1e7b82c897bd91a6e59ec04b Mon Sep 17 00:00:00 2001 From: JustAHuman-xD <65748158+JustAHuman-xD@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:59:05 -0500 Subject: [PATCH] Minor changes to ShardMaterial (#73) * Add message and auto-start a new quest * Remove unused method * Actually nvm don't do that * Revert any changes but the messages * Change no quest message * Move this into the delay & fix purple color --- .../implementation/materials/ShardMaterial.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/gallowsdove/foxymachines/implementation/materials/ShardMaterial.java b/src/main/java/me/gallowsdove/foxymachines/implementation/materials/ShardMaterial.java index 10dbfc2..343b356 100644 --- a/src/main/java/me/gallowsdove/foxymachines/implementation/materials/ShardMaterial.java +++ b/src/main/java/me/gallowsdove/foxymachines/implementation/materials/ShardMaterial.java @@ -29,16 +29,17 @@ public ItemDropHandler getItemHandler() { return false; } - if (!QuestUtils.hasActiveQuest(p)) { - return true; - } - Slimefun.runSync(() -> { + if (!QuestUtils.hasActiveQuest(p)) { + p.sendMessage(this.color + "You should check your quest with " + ChatColor.LIGHT_PURPLE + "/foxy quest " + this.color + "first!"); + return; + } + if (SacrificialAltarListener.findAltar(item.getLocation().getBlock()) == null) { return; } - p.sendMessage(this.color + "Quest reset!"); + p.sendMessage(this.color + "Reset active quest!"); QuestUtils.resetQuestLine(p); SacrificialAltarListener.particleAnimation(item.getLocation());