Do not proceed on invalid entity type, fixes #1520

This commit is contained in:
PikaMug 2020-12-22 00:12:41 -05:00
parent 04621291de
commit 60290f0149

View File

@ -2178,6 +2178,9 @@ public class Quester implements Comparable<Quester> {
}
final int index = questData.mobsKilled.indexOf(e);
if (index == -1) {
return;
}
final int mobsKilled = questData.mobNumKilled.get(index);
final int mobsToKill = currentStage.mobNumToKill.get(index);
if (questData.locationsToKillWithin.isEmpty() == false) {