1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-16 13:11:19 +01:00

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.
This commit is contained in:
smuddgge 2022-11-04 17:26:48 +00:00
parent 548e03346f
commit 7a63a615b4

View File

@ -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;
}
}