summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FishingTaskType.java8
1 files changed, 4 insertions, 4 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 22ac3444..81ee1a23 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
@@ -39,11 +39,11 @@ public final class FishingTaskType extends TaskType {
if (event.getState() == PlayerFishEvent.State.BITE) {
return;
}
-
+
Location hookLocation = event.getHook().getLocation().add(0, -1, 0);
- if (!hookLocation.getBlock().getType().equals(Material.STATIONARY_WATER) |
- hookLocation.getBlock().getType().equals(Material.WATER)) {
- return;
+ if (!(hookLocation.getBlock().getType() == Material.STATIONARY_WATER ||
+ hookLocation.getBlock().getType() == Material.WATER)) {
+ return;
}
Player player = event.getPlayer();