From ade16b3d98880801813c450ebee07f6d6ee1afaf Mon Sep 17 00:00:00 2001 From: Guy Aglionby Date: Sat, 3 Sep 2016 00:16:57 +0100 Subject: [PATCH] Fix #410 --- src/main/java/me/blackvein/quests/Quester.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/blackvein/quests/Quester.java b/src/main/java/me/blackvein/quests/Quester.java index e0cef4226..9854b5858 100644 --- a/src/main/java/me/blackvein/quests/Quester.java +++ b/src/main/java/me/blackvein/quests/Quester.java @@ -1391,7 +1391,8 @@ public class Quester { int amount = getQuestData(quest).itemsDelivered.get(found); int req = getCurrentStage(quest).itemsToDeliver.get(getCurrentStage(quest).itemsToDeliver.indexOf(found)).getAmount(); -Material m = null; + Material m = i.getType(); + if (amount < req) { if ((i.getAmount() + amount) > req) {