1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

Merge pull request #1520 from smuddgge/master

Jobs fishing listener MCMMO fix
This commit is contained in:
Zrips 2022-11-14 13:39:34 +02:00 committed by GitHub
commit c4ecee7840
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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