Only progress fish objective if actually caught, per #1559

This commit is contained in:
PikaMug 2021-01-16 01:47:06 -05:00
parent a114a672fd
commit 129b1eaf29

View File

@ -750,16 +750,17 @@ public class PlayerListener implements Listener {
continue;
}
if (quester.getCurrentQuests().containsKey(quest)
&& quester.getCurrentStage(quest).containsObjective(type)
&& evt.getState().equals(State.CAUGHT_FISH)) {
quester.catchFish(quest);
if (evt.getState().equals(State.CAUGHT_FISH)) {
if (quester.getCurrentQuests().containsKey(quest)
&& quester.getCurrentStage(quest).containsObjective(type)) {
quester.catchFish(quest);
}
quester.dispatchMultiplayerEverything(quest, type, (final Quester q, final Quest cq) -> {
q.catchFish(cq);
return null;
});
}
quester.dispatchMultiplayerEverything(quest, type, (final Quester q, final Quest cq) -> {
q.catchFish(cq);
return null;
});
}
}
}