From 590c0d38e17f0345b40fb168648af495b0c2b3fb Mon Sep 17 00:00:00 2001 From: Rime <81419447+Emirlol@users.noreply.github.com> Date: Mon, 23 Dec 2024 06:56:55 +0300 Subject: [PATCH] Check if the feature is enabled before ticking --- .../de/hysky/skyblocker/skyblock/dwarven/CarpetHighlighter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CarpetHighlighter.java b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CarpetHighlighter.java index 629ad3eb82..83cbbeb083 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CarpetHighlighter.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CarpetHighlighter.java @@ -59,7 +59,7 @@ public void onLocationChange(Location location) { } public void tick() { - if (!isLocationValid || MinecraftClient.getInstance().world == null || MinecraftClient.getInstance().player == null) return; + if (!isLocationValid || !SkyblockerConfigManager.get().mining.dwarvenMines.enableCarpetHighlighter || MinecraftClient.getInstance().world == null || MinecraftClient.getInstance().player == null) return; Iterable iterable = BlockPos.iterateOutwards(MinecraftClient.getInstance().player.getBlockPos(), SEARCH_RADIUS, SEARCH_RADIUS, SEARCH_RADIUS); for (BlockPos blockPos : iterable) { //The iterator contains a BlockPos.Mutable that it changes the position of to iterate over blocks,