From 7a63a615b4b7acbc89df7a99c788fcbbc9048bcc Mon Sep 17 00:00:00 2001 From: smuddgge <68658429+smuddgge@users.noreply.github.com> Date: Fri, 4 Nov 2022 17:26:48 +0000 Subject: [PATCH] Jobs fishing listener MCMMO fix `isExploitingFishing` returns true when a player is warned. `isFishingTooOfter` returns true when they should not catch a fish. I think it makes more sence that thye should still get paid for catching the fish. --- .../java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java index 559b888e..4f88b98b 100644 --- a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java +++ b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java @@ -543,7 +543,7 @@ public final class JobsPaymentListener implements Listener { // check is the fishing being exploited. If yes, prevent payment. if (mcMMOPlayer != null && ExperienceConfig.getInstance().isFishingExploitingPrevented() - && mcMMOPlayer.getFishingManager().isExploitingFishing(event.getHook().getLocation().toVector())) { + && mcMMOPlayer.getFishingManager().isFishingTooOften()) { return; } }