mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-22 17:17:38 +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) {
|
||||
try {
|
||||
return orderedStages.get(index);
|
||||
} catch (IndexOutOfBoundsException e) {
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
@ -307,7 +307,6 @@ public class Quester {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
stack.setItemMeta(book);
|
||||
|
Loading…
Reference in New Issue
Block a user