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,9 +750,9 @@ public class PlayerListener implements Listener {
continue;
}
if (evt.getState().equals(State.CAUGHT_FISH)) {
if (quester.getCurrentQuests().containsKey(quest)
&& quester.getCurrentStage(quest).containsObjective(type)
&& evt.getState().equals(State.CAUGHT_FISH)) {
&& quester.getCurrentStage(quest).containsObjective(type)) {
quester.catchFish(quest);
}
@ -763,6 +763,7 @@ public class PlayerListener implements Listener {
}
}
}
}
@EventHandler
public void onPlayerChangeWorld(final PlayerChangedWorldEvent event) {