mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-03 15:08:10 +01:00
Catch NullPointerException on PlayerQuit
This commit is contained in:
parent
02968a47e4
commit
d85e7c5a57
@ -78,7 +78,7 @@ public class Quest {
|
|||||||
public Stage getStage(int index) {
|
public Stage getStage(int index) {
|
||||||
try {
|
try {
|
||||||
return orderedStages.get(index);
|
return orderedStages.get(index);
|
||||||
} catch (IndexOutOfBoundsException e) {
|
} catch (Exception e) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -307,7 +307,6 @@ public class Quester {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stack.setItemMeta(book);
|
stack.setItemMeta(book);
|
||||||
|
Loading…
Reference in New Issue
Block a user