From 08444dc32b39b8cdf8bf6a1e47248fc4d871d2d7 Mon Sep 17 00:00:00 2001 From: Kaluub <60589762+Kaluub@users.noreply.github.com> Date: Sat, 20 Jan 2024 15:50:48 -0500 Subject: [PATCH] Fix fishing timer appearing outside Skyblock. (#508) --- src/main/java/de/hysky/skyblocker/skyblock/FishingHelper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/de/hysky/skyblocker/skyblock/FishingHelper.java b/src/main/java/de/hysky/skyblocker/skyblock/FishingHelper.java index 6edb416e6b..9e7cf541af 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/FishingHelper.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/FishingHelper.java @@ -1,6 +1,7 @@ package de.hysky.skyblocker.skyblock; import de.hysky.skyblocker.config.SkyblockerConfigManager; +import de.hysky.skyblocker.utils.Utils; import de.hysky.skyblocker.utils.render.RenderHelper; import de.hysky.skyblocker.utils.render.title.Title; import net.fabricmc.fabric.api.event.player.UseItemCallback; @@ -23,6 +24,9 @@ public class FishingHelper { public static void init() { UseItemCallback.EVENT.register((player, world, hand) -> { ItemStack stack = player.getStackInHand(hand); + if (!Utils.isOnSkyblock()) { + return TypedActionResult.pass(stack); + } if (stack.getItem() instanceof FishingRodItem) { if (player.fishHook == null) { start(player);