mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Handle Fishing Event even if FishingExploitFix is set to false
This commit is contained in:
parent
2910240942
commit
054c023330
@ -396,11 +396,9 @@ public class PlayerListener implements Listener {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case CAUGHT_FISH:
|
case CAUGHT_FISH:
|
||||||
if(ExperienceConfig.getInstance().isFishingExploitingPrevented())
|
|
||||||
{
|
|
||||||
if(caught instanceof Item) {
|
if(caught instanceof Item) {
|
||||||
if(fishingManager.isExploitingFishing(event.getHook().getLocation().toVector()))
|
if(ExperienceConfig.getInstance().isFishingExploitingPrevented()) {
|
||||||
{
|
if (fishingManager.isExploitingFishing(event.getHook().getLocation().toVector())) {
|
||||||
player.sendMessage(LocaleLoader.getString("Fishing.ScarcityTip", 3));
|
player.sendMessage(LocaleLoader.getString("Fishing.ScarcityTip", 3));
|
||||||
event.setExpToDrop(0);
|
event.setExpToDrop(0);
|
||||||
Item caughtItem = (Item) caught;
|
Item caughtItem = (Item) caught;
|
||||||
@ -408,11 +406,11 @@ public class PlayerListener implements Listener {
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fishingManager.handleFishing((Item) caught);
|
fishingManager.handleFishing((Item) caught);
|
||||||
fishingManager.setFishingTarget();
|
fishingManager.setFishingTarget();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
case CAUGHT_ENTITY:
|
case CAUGHT_ENTITY:
|
||||||
if (fishingManager.canShake(caught)) {
|
if (fishingManager.canShake(caught)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user