From 7adfdfe8162c7aeec7204f323279e25d0b31b575 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 29 Nov 2023 00:43:46 +0100 Subject: Fixed showing yourself green with Unique Gifting Opportunities. --- .../skyhanni/features/event/UniqueGiftingOpportnitiesFeatures.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/UniqueGiftingOpportnitiesFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/event/UniqueGiftingOpportnitiesFeatures.kt index 517786710..92438f10a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/UniqueGiftingOpportnitiesFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/UniqueGiftingOpportnitiesFeatures.kt @@ -14,6 +14,7 @@ import at.hannibal2.skyhanni.utils.LorenzColor import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher import at.hannibal2.skyhanni.utils.getLorenzVec +import net.minecraft.client.entity.EntityPlayerSP import net.minecraft.entity.item.EntityArmorStand import net.minecraft.entity.player.EntityPlayer import net.minecraftforge.event.entity.EntityJoinWorldEvent @@ -66,6 +67,7 @@ object UniqueGiftingOpportnitiesFeatures { fun onRenderMobColored(event: RenderMobColoredEvent) { if (!isEnabled()) return val entity = event.entity + if (entity is EntityPlayerSP) return if (entity is EntityPlayer && !entity.isNPC() && !hasGiftedPlayer(entity)) event.color = LorenzColor.DARK_GREEN.toColor().withAlpha(127) } -- cgit