From 7c2d4ed566246513bc438272e436627412147d62 Mon Sep 17 00:00:00 2001 From: David Cole <40234707+DavidArthurCole@users.noreply.github.com> Date: Fri, 11 Oct 2024 12:42:33 -0400 Subject: Backend: Detekt Fixes Part 6 (#2657) Co-authored-by: Cal Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../at/hannibal2/skyhanni/features/slayer/SlayerRngMeterDisplay.kt | 3 ++- .../skyhanni/features/slayer/enderman/EndermanSlayerFeatures.kt | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/slayer') diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerRngMeterDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerRngMeterDisplay.kt index d2c161eba..cd6e7b2db 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerRngMeterDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerRngMeterDisplay.kt @@ -217,7 +217,8 @@ object SlayerRngMeterDisplay { if (SlayerAPI.latestSlayerCategory.let { it.endsWith(" I") || it.endsWith(" II") - }) { + } + ) { return "" } val latestSlayerCategory = SlayerAPI.latestSlayerCategory diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/enderman/EndermanSlayerFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/enderman/EndermanSlayerFeatures.kt index 72ab05195..dd63fdd96 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/enderman/EndermanSlayerFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/enderman/EndermanSlayerFeatures.kt @@ -81,7 +81,11 @@ object EndermanSlayerFeatures { } } - if (config.highlightNukekebi && entity.inventory.any { it?.getSkullTexture() == NUKEKUBI_SKULL_TEXTURE } && entity !in nukekubiSkulls) { + if (config.highlightNukekebi && + entity.inventory.any { + it?.getSkullTexture() == NUKEKUBI_SKULL_TEXTURE + } && entity !in nukekubiSkulls + ) { nukekubiSkulls.add(entity) RenderLivingEntityHelper.setEntityColor( entity, -- cgit