diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-07 13:07:15 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-07 13:07:15 +0200 |
commit | b8918c3cae62d27edcec44fac247f2311ff830b7 (patch) | |
tree | 08992ef9faa6003faeb6e034675dd8d005906aca /src/main/java/at/hannibal2/skyhanni/mixins/hooks | |
parent | d345adc3ecd390d9b722127a4013a6edb6c3dc76 (diff) | |
download | skyhanni-b8918c3cae62d27edcec44fac247f2311ff830b7.tar.gz skyhanni-b8918c3cae62d27edcec44fac247f2311ff830b7.tar.bz2 skyhanni-b8918c3cae62d27edcec44fac247f2311ff830b7.zip |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixins/hooks')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/mixins/hooks/RendererLivingEntityHook.kt | 6 |
1 files changed, 3 insertions, 3 deletions
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 |