Skip to content

Commit

Permalink
Check if the feature is enabled before ticking
Browse files Browse the repository at this point in the history
  • Loading branch information
Emirlol committed Dec 23, 2024
1 parent 269908c commit 590c0d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<BlockPos> 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,
Expand Down

0 comments on commit 590c0d3

Please sign in to comment.