aboutsummaryrefslogtreecommitdiffstats
path: root/bukkit/src/main/java/com/leonardobishop
diff options
context:
space:
mode:
authorKrakenied <krakenied1@gmail.com>2025-02-04 13:30:18 +0100
committerKrakenied <46192742+Krakenied@users.noreply.github.com>2025-05-13 20:34:15 +0200
commit0f0ddd1fdb70d5c230808d0e596852bc44144ec4 (patch)
tree4ebd79db6a8a2a52625de417a70a3ac0828e9519 /bukkit/src/main/java/com/leonardobishop
parent31c7e2d50ab5be2b3014900297f458dec2fbd6e1 (diff)
Fix farming task type for kelp
Diffstat (limited to 'bukkit/src/main/java/com/leonardobishop')
-rw-r--r--bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/FarmingTaskType.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/FarmingTaskType.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/FarmingTaskType.java
index 1fa0bfcf..32e8c121 100644
--- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/FarmingTaskType.java
+++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/FarmingTaskType.java
@@ -61,7 +61,7 @@ public final class FarmingTaskType extends BukkitTaskType {
boolean performAgeCheck = true;
- if (type == Material.BAMBOO || type == Material.CACTUS || type == Material.KELP || type == Material.SUGAR_CANE) {
+ if (type == Material.BAMBOO || type == Material.CACTUS || type == Material.KELP || type == Material.KELP_PLANT || type == Material.SUGAR_CANE) {
performAgeCheck = false;
Block anotherBlock = block.getRelative(BlockFace.UP);
@@ -69,7 +69,8 @@ public final class FarmingTaskType extends BukkitTaskType {
while (true) {
Material anotherType = anotherBlock.getType();
- if (anotherType == type) {
+ // We need a way more elegant solution to check the kelp thing
+ if (anotherType == type || (type == Material.KELP_PLANT && anotherType == Material.KELP)) {
brokenBlocks.add(anotherBlock);
} else {
break;