mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-24 01:02:00 +01:00
Notify console of non-existent stage or quest, fixes #1665
This commit is contained in:
parent
60a1f5b119
commit
98d0076a2c
@ -3201,6 +3201,14 @@ public class Quester implements Comparable<Quester> {
|
||||
public void addEmptiesFor(final Quest quest, final int stage) {
|
||||
final QuestData data = new QuestData(this);
|
||||
data.setDoJournalUpdate(false);
|
||||
if (quest == null) {
|
||||
plugin.getLogger().warning("Unable to find quest for player " + this.lastKnownName);
|
||||
return;
|
||||
}
|
||||
if (quest.getStage(stage) == null) {
|
||||
plugin.getLogger().severe("Unable to find Stage " + stage + " of quest ID " + quest.getId());
|
||||
return;
|
||||
}
|
||||
if (quest.getStage(stage).blocksToBreak.isEmpty() == false) {
|
||||
for (final ItemStack i : quest.getStage(stage).blocksToBreak) {
|
||||
final ItemStack temp = new ItemStack(i.getType(), 0, i.getDurability());
|
||||
|
Loading…
Reference in New Issue
Block a user