Fixed multiple fishing lines

This commit is contained in:
Ka0rX 2022-08-28 15:16:05 +02:00
parent 40ae82cae9
commit 4dac0b1996

View File

@ -135,7 +135,7 @@ public class FishingListener implements Listener {
location.getWorld().spawnParticle(Particle.CRIT, location, 0, 2 * (RANDOM.nextDouble() - .5), 3, 2 * (RANDOM.nextDouble() - .5), .6);
}
@EventHandler
@EventHandler(priority = EventPriority.LOWEST)
public void a(PlayerFishEvent event) {
if (event.getPlayer().equals(player) && (event.getState() == State.CAUGHT_FISH || event.getState() == State.FAILED_ATTEMPT || event.getState() == State.REEL_IN)) {