summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/event
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-04-01 21:17:21 +0200
committerGitHub <noreply@github.com>2024-04-01 21:17:21 +0200
commit9d0f4deee109a05ebed657e1c578c78d7c19f863 (patch)
tree78c243fe7ef3e48fb4093b0c1147c16b26587dcd /src/main/java/at/hannibal2/skyhanni/features/event
parent6ac1fba772a35fb55cd639f8b592968adfbf153b (diff)
downloadskyhanni-9d0f4deee109a05ebed657e1c578c78d7c19f863.tar.gz
skyhanni-9d0f4deee109a05ebed657e1c578c78d7c19f863.tar.bz2
skyhanni-9d0f4deee109a05ebed657e1c578c78d7c19f863.zip
Feature: Custom Inquisitor Highlight Color (#1323)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/event')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/HighlightInquisitors.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/HighlightInquisitors.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/HighlightInquisitors.kt
index 8ee9a1756..a56554af9 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/HighlightInquisitors.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/HighlightInquisitors.kt
@@ -2,9 +2,8 @@ package at.hannibal2.skyhanni.features.event.diana
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.mixins.hooks.RenderLivingEntityHelper
-import at.hannibal2.skyhanni.utils.ColorUtils.withAlpha
-import at.hannibal2.skyhanni.utils.LorenzColor
import at.hannibal2.skyhanni.utils.LorenzUtils
+import at.hannibal2.skyhanni.utils.SpecialColour
import net.minecraft.entity.player.EntityPlayer
import net.minecraftforge.event.entity.EntityJoinWorldEvent
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@@ -21,7 +20,7 @@ class HighlightInquisitors {
val entity = event.entity
if (entity is EntityPlayer && entity.name == "Minos Inquisitor") {
- val color = LorenzColor.AQUA.toColor().withAlpha(127)
+ val color = SpecialColour.specialToChromaRGB(config.color)
RenderLivingEntityHelper.setEntityColorWithNoHurtTime(entity, color) { config.highlightInquisitors }
}
}