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,