Safety check for #257

This commit is contained in:
HappyPikachu 2018-01-26 16:47:52 -05:00
parent b61874cd4e
commit 722c2388b5

View File

@ -949,6 +949,9 @@ public class Quester {
public void killMob(Quest quest, Location killedLocation, EntityType e) { public void killMob(Quest quest, Location killedLocation, EntityType e) {
QuestData questData = getQuestData(quest); QuestData questData = getQuestData(quest);
if (questData.mobsKilled.isEmpty() == false && e != null) {
return;
}
if (questData.mobsKilled.contains(e) == false) { if (questData.mobsKilled.contains(e) == false) {
return; return;
} }