aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-08 19:50:12 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-08 19:50:12 +0200
commitd9eac8d1f1b3e85750b36026df78cd040b33ca24 (patch)
tree8e332bebe47f835fe75bdb6b8cb0c73a37434cb6 /src/main/java/at/hannibal2/skyhanni
parent878f8ee718c43d66e068f40e1c2ef7d30abb7ac4 (diff)
downloadskyhanni-d9eac8d1f1b3e85750b36026df78cd040b33ca24.tar.gz
skyhanni-d9eac8d1f1b3e85750b36026df78cd040b33ca24.tar.bz2
skyhanni-d9eac8d1f1b3e85750b36026df78cd040b33ca24.zip
toChromaColor > specialToChromaRGB
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazingSouls.kt5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SpecialColour.java1
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazingSouls.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazingSouls.kt
index e4ace1bed..ff4cae5a7 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazingSouls.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangBlazingSouls.kt
@@ -8,16 +8,15 @@ import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent
import at.hannibal2.skyhanni.features.combat.damageindicator.BossType
import at.hannibal2.skyhanni.features.combat.damageindicator.DamageIndicatorManager
import at.hannibal2.skyhanni.test.GriffinUtils.drawWaypointFilled
+import at.hannibal2.skyhanni.utils.ColorUtils.toChromaColor
import at.hannibal2.skyhanni.utils.EntityUtils
import at.hannibal2.skyhanni.utils.EntityUtils.hasSkullTexture
import at.hannibal2.skyhanni.utils.LocationUtils
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.RenderUtils.drawString
-import at.hannibal2.skyhanni.utils.SpecialColour
import at.hannibal2.skyhanni.utils.getLorenzVec
import net.minecraft.entity.item.EntityArmorStand
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
-import java.awt.Color
class AshfangBlazingSouls {
@@ -40,7 +39,7 @@ class AshfangBlazingSouls {
fun onRenderWorld(event: LorenzRenderWorldEvent) {
if (!isEnabled()) return
- val color = Color(SpecialColour.specialToChromaRGB(config.color), true)
+ val color = config.color.toChromaColor()
val playerLocation = LocationUtils.playerLocation()
for (orb in souls) {
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SpecialColour.java b/src/main/java/at/hannibal2/skyhanni/utils/SpecialColour.java
index fad2947c1..010e67e4d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/SpecialColour.java
+++ b/src/main/java/at/hannibal2/skyhanni/utils/SpecialColour.java
@@ -33,6 +33,7 @@ public class SpecialColour {
public static long startTime = -1;
+ @Deprecated // use String.toChromaColor()
public static int specialToChromaRGB(String special) {
if (startTime < 0) startTime = System.currentTimeMillis();