mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-01 00:11:00 +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
|
# Ignore IDEA files
|
||||||
/.idea
|
/.idea
|
||||||
*.iml
|
*.iml
|
||||||
|
/bin/
|
||||||
|
@ -667,9 +667,18 @@ public class Quester {
|
|||||||
|
|
||||||
for (ItemStack is : getCurrentStage(quest).itemsToDeliver) {
|
for (ItemStack is : getCurrentStage(quest).itemsToDeliver) {
|
||||||
|
|
||||||
int delivered = getQuestData(quest).itemsDelivered.get(is);
|
int delivered = 999;
|
||||||
int amt = is.getAmount();
|
int amt = 999;
|
||||||
Integer npc = getCurrentStage(quest).itemDeliveryTargets.get(getCurrentStage(quest).itemsToDeliver.indexOf(is));
|
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) {
|
if (delivered < amt) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user