From 054c023330b6ced49090ac17ab16cebb54aea547 Mon Sep 17 00:00:00 2001 From: Ineusia Date: Sat, 25 Jul 2020 10:36:34 -0500 Subject: [PATCH] Handle Fishing Event even if FishingExploitFix is set to false --- .../gmail/nossr50/listeners/PlayerListener.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index 436e6cbc4..dc6423a57 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -396,11 +396,9 @@ public class PlayerListener implements Listener { } return; case CAUGHT_FISH: - if(ExperienceConfig.getInstance().isFishingExploitingPrevented()) - { - if(caught instanceof Item) { - if(fishingManager.isExploitingFishing(event.getHook().getLocation().toVector())) - { + if(caught instanceof Item) { + if(ExperienceConfig.getInstance().isFishingExploitingPrevented()) { + if (fishingManager.isExploitingFishing(event.getHook().getLocation().toVector())) { player.sendMessage(LocaleLoader.getString("Fishing.ScarcityTip", 3)); event.setExpToDrop(0); Item caughtItem = (Item) caught; @@ -408,10 +406,10 @@ public class PlayerListener implements Listener { return; } - - fishingManager.handleFishing((Item) caught); - fishingManager.setFishingTarget(); } + + fishingManager.handleFishing((Item) caught); + fishingManager.setFishingTarget(); } return; case CAUGHT_ENTITY: