mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-24 01:02:00 +01:00
Ensure current stage is not null before accessing base data, fixes #1426
This commit is contained in:
parent
a3df767838
commit
465f26badb
@ -2979,14 +2979,16 @@ public class Quester {
|
||||
}
|
||||
questSec.set("item-consume-amounts", consumeAmounts);
|
||||
}
|
||||
if (getCurrentStage(quest).cowsToMilk != null) {
|
||||
questSec.set("cows-milked", questData.getCowsMilked());
|
||||
}
|
||||
if (getCurrentStage(quest).fishToCatch != null) {
|
||||
questSec.set("fish-caught", questData.getFishCaught());
|
||||
}
|
||||
if (getCurrentStage(quest).playersToKill != null) {
|
||||
questSec.set("players-killed", questData.getPlayersKilled());
|
||||
if (getCurrentStage(quest) != null) {
|
||||
if (getCurrentStage(quest).cowsToMilk != null) {
|
||||
questSec.set("cows-milked", questData.getCowsMilked());
|
||||
}
|
||||
if (getCurrentStage(quest).fishToCatch != null) {
|
||||
questSec.set("fish-caught", questData.getFishCaught());
|
||||
}
|
||||
if (getCurrentStage(quest).playersToKill != null) {
|
||||
questSec.set("players-killed", questData.getPlayersKilled());
|
||||
}
|
||||
}
|
||||
if (questData.mobsKilled.isEmpty() == false) {
|
||||
final LinkedList<String> mobNames = new LinkedList<String>();
|
||||
|
Loading…
Reference in New Issue
Block a user