Skip to content

Commit

Permalink
Minor changes to ShardMaterial (#73)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
JustAHuman-xD authored Aug 1, 2023
1 parent 817ef13 commit 03c174a
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 03c174a

Please sign in to comment.