aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-26 18:44:06 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-26 18:44:06 +0200
commit4e9e21f26844257eeb7de2280ca317a6a69f146c (patch)
tree05665c45805126409d911f7aa97859f3dc224e4a /src/main/java
parent49c6158fd11eba3eaa9f69568ea26b5460198025 (diff)
downloadskyhanni-4e9e21f26844257eeb7de2280ca317a6a69f146c.tar.gz
skyhanni-4e9e21f26844257eeb7de2280ca317a6a69f146c.tar.bz2
skyhanni-4e9e21f26844257eeb7de2280ca317a6a69f146c.zip
code cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt
index 38487a88c..55327ccb1 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt
@@ -82,13 +82,10 @@ class RiftMotesOrb {
val location = orb.location.add(0.0, 0.5, 0.0)
val sizeOffset = (5 - config.size) * -0.1
- if (orb.pickedUp) {
- event.drawDynamicText(location, "§7Motes Orb", 1.5 + sizeOffset, ignoreBlocks = false)
- event.drawWaypointFilled(location, LorenzColor.GRAY.toColor(), extraSize = sizeOffset)
- } else {
- event.drawDynamicText(location, "§dMotes Orb", 1.5 + sizeOffset, ignoreBlocks = false)
- event.drawWaypointFilled(location, LorenzColor.LIGHT_PURPLE.toColor(), extraSize = sizeOffset)
- }
+ val color = if (orb.pickedUp) LorenzColor.GRAY else LorenzColor.LIGHT_PURPLE
+ val text = color.getChatColor() + "Motes Orb"
+ event.drawDynamicText(location, text, 1.5 + sizeOffset, ignoreBlocks = false)
+ event.drawWaypointFilled(location, color.toColor(), extraSize = sizeOffset)
}
}