mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-23 17:47:49 +01:00
Avoid error when no items have been delivered, fixes #362
This commit is contained in:
parent
382796a71a
commit
25be6a0e69
@ -596,10 +596,8 @@ public class Quester {
|
||||
int index2 = 0;
|
||||
for (ItemStack is : getCurrentStage(quest).itemsToDeliver) {
|
||||
int delivered = 0;
|
||||
try {
|
||||
if (getQuestData(quest).itemsDelivered.containsKey(is)) {
|
||||
delivered = getQuestData(quest).itemsDelivered.get(is);
|
||||
} catch (NullPointerException ne) {
|
||||
plugin.getLogger().severe("itemsDelivered did not contain " + is.getType() + ":" + is.getDurability() + " x " + is.getAmount() + " for quest " + quest.name);
|
||||
}
|
||||
int amt = is.getAmount();
|
||||
Integer npc = getCurrentStage(quest).itemDeliveryTargets.get(index2);
|
||||
|
Loading…
Reference in New Issue
Block a user