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:
parent
548e03346f
commit
7a63a615b4
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user