aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt10
1 files changed, 5 insertions, 5 deletions
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()
}
}