mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 02:25:42 +01:00
Add debug for #93
This commit is contained in:
parent
a7d6ea8885
commit
629c80b2a0
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
||||
# Ignore IDEA files
|
||||
/.idea
|
||||
*.iml
|
||||
/bin/
|
||||
|
@ -667,9 +667,18 @@ public class Quester {
|
||||
|
||||
for (ItemStack is : getCurrentStage(quest).itemsToDeliver) {
|
||||
|
||||
int delivered = getQuestData(quest).itemsDelivered.get(is);
|
||||
int amt = is.getAmount();
|
||||
Integer npc = getCurrentStage(quest).itemDeliveryTargets.get(getCurrentStage(quest).itemsToDeliver.indexOf(is));
|
||||
int delivered = 999;
|
||||
int amt = 999;
|
||||
Integer npc = null;
|
||||
try {
|
||||
delivered = getQuestData(quest).itemsDelivered.get(is);
|
||||
amt = is.getAmount();
|
||||
npc = getCurrentStage(quest).itemDeliveryTargets.get(getCurrentStage(quest).itemsToDeliver.indexOf(is));
|
||||
} catch (Exception e) {
|
||||
plugin.getLogger().severe("Issue grabbing data. Please report these values in Github ticket #93:");
|
||||
plugin.getLogger().severe("quest = " + quest.name + ", delivered = " + delivered + ", amt = " + amt + ", npc = " + npc);
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
if (delivered < amt) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user