aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-29 00:43:46 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-29 00:43:46 +0100
commit7adfdfe8162c7aeec7204f323279e25d0b31b575 (patch)
tree21ffbec518a086e8dc21826e945f35729ee5a508
parentfc5615abdbaaec1cd6bb388eb3a625791cae42f0 (diff)
downloadskyhanni-7adfdfe8162c7aeec7204f323279e25d0b31b575.tar.gz
skyhanni-7adfdfe8162c7aeec7204f323279e25d0b31b575.tar.bz2
skyhanni-7adfdfe8162c7aeec7204f323279e25d0b31b575.zip
Fixed showing yourself green with Unique Gifting Opportunities.
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/UniqueGiftingOpportnitiesFeatures.kt2
1 files changed, 2 insertions, 0 deletions
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)
}