mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-18 23:27:44 +01:00
Catch error when unable to take quest, fixes #374
This commit is contained in:
parent
d8efb37a61
commit
e88d7159fe
@ -381,7 +381,12 @@ public class Quester {
|
||||
}
|
||||
if (q.testRequirements(player) == true || override) {
|
||||
addEmptiesFor(q, 0);
|
||||
currentQuests.put(q, 0);
|
||||
try {
|
||||
currentQuests.put(q, 0);
|
||||
} catch (NullPointerException npe) {
|
||||
plugin.getLogger().severe("Unable to add quest" + q.name + " for player " + player.getName()
|
||||
+ ". Consider resetting player data or report on Github");
|
||||
}
|
||||
Stage stage = q.getStage(0);
|
||||
if (!override) {
|
||||
if (q.moneyReq > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user