diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-14 01:08:42 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-14 01:08:42 +0100 |
commit | 18e663ea673ba938394fdafbb2ed37f2a795da4d (patch) | |
tree | 1fd32e5b1e524b134238d69fca43ca5fa4c44fff /src/main | |
parent | 452f67a87dc4e50f0e5f532726fcd69ceca24eae (diff) | |
download | skyhanni-18e663ea673ba938394fdafbb2ed37f2a795da4d.tar.gz skyhanni-18e663ea673ba938394fdafbb2ed37f2a795da4d.tar.bz2 skyhanni-18e663ea673ba938394fdafbb2ed37f2a795da4d.zip |
code cleanup
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt | 10 |
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() } } |