mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-15 23:26:11 +01:00
Only progress fish objective if actually caught, per #1559
This commit is contained in:
parent
a114a672fd
commit
129b1eaf29
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user