aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FishingTaskType.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FishingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FishingTaskType.java
index 96840e2f..0c04a98a 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FishingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FishingTaskType.java
@@ -35,14 +35,14 @@ public final class FishingTaskType extends TaskType {
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onFishCaught(PlayerFishEvent event) {
- if (event.getState() == PlayerFishEvent.State.CAUGHT_FISH) {
+ if (event.getState() != PlayerFishEvent.State.CAUGHT_FISH) {
return;
}
- Location hookLocation = event.getHook().getLocation().add(0, -1, 0);
- if (!(hookLocation.getBlock().getType() == Material.WATER)) {
- return;
- }
+// Location hookLocation = event.getHook().getLocation().add(0, -1, 0);
+// if (!(hookLocation.getBlock().getType() == Material.WATER)) {
+// return;
+// }
Player player = event.getPlayer();