From 18e663ea673ba938394fdafbb2ed37f2a795da4d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 14 Dec 2023 01:08:42 +0100 Subject: code cleanup --- .../skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt index e3ba427f7..7e5740d4a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt @@ -164,12 +164,12 @@ object ItemDisplayOverlayFeatures { } if (RANCHERS_BOOTS_SPEED.isSelected() && itemName.contains("Rancher's Boots")) { - val ranchersSpeed = item.getRanchersSpeed() - if (ranchersSpeed != null) { - if (ranchersSpeed > 400 && PetAPI.currentPet?.contains("Black Cat") == false) { - return "§c" + ranchersSpeed.toString() + item.getRanchersSpeed()?.let { + return if (it > 400 && PetAPI.currentPet?.contains("Black Cat") == false) { + "§c$it" + } else { + "§a$it" } - return "§a" + ranchersSpeed.toString() } } -- cgit