From b8918c3cae62d27edcec44fac247f2311ff830b7 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 7 Sep 2023 13:07:15 +0200 Subject: code cleanup --- .../at/hannibal2/skyhanni/mixins/hooks/RendererLivingEntityHook.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/mixins/hooks') diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RendererLivingEntityHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RendererLivingEntityHook.kt index a06e6d89e..c91252c8a 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RendererLivingEntityHook.kt +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RendererLivingEntityHook.kt @@ -6,15 +6,15 @@ import net.minecraft.entity.EntityLivingBase class RendererLivingEntityHook { fun setOutlineColor(red: Float, green: Float, blue: Float, alpha: Float, entity: EntityLivingBase) { - val color = EntityOutlineRenderer.getCustomOutlineColor(entity); + val color = EntityOutlineRenderer.getCustomOutlineColor(entity) if (color != null) { val colorRed = (color shr 16 and 255).toFloat() / 255.0f val colorGreen = (color shr 8 and 255).toFloat() / 255.0f val colorBlue = (color and 255).toFloat() / 255.0f - GlStateManager.color(colorRed, colorGreen, colorBlue, alpha); + GlStateManager.color(colorRed, colorGreen, colorBlue, alpha) } else { - GlStateManager.color(red, green, blue, alpha); + GlStateManager.color(red, green, blue, alpha) } } } \ No newline at end of file -- cgit