fixed NullPointerException in updatePlayerQuest (fixes #3015448)
This commit is contained in:
parent
952e512167
commit
a9bba6c2ed
2 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ public class DarkElvesCreatures implements ZoneConfigurator {
|
|||
}
|
||||
final Player player = (Player) killer;
|
||||
// check if player started his quest already
|
||||
if(!player.getQuest(QUEST_SLOT, 0).equals("started")) {
|
||||
if(!player.hasQuest(QUEST_SLOT) || !player.getQuest(QUEST_SLOT, 0).equals("started")) {
|
||||
return;
|
||||
}
|
||||
int slot=creatures.indexOf(victim);
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public class DrowCreatures implements ZoneConfigurator {
|
|||
}
|
||||
final Player player = (Player) killer;
|
||||
// check if player started his quest already
|
||||
if(!player.getQuest(QUEST_SLOT, 0).equals("started")) {
|
||||
if(!player.hasQuest(QUEST_SLOT) || !player.getQuest(QUEST_SLOT, 0).equals("started")) {
|
||||
return;
|
||||
}
|
||||
int slot=creatures.indexOf(victim);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue