diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-09-03 09:59:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 09:59:27 +0200 |
commit | 2b92f20b8a080be611447635b6f27a7651d49ca0 (patch) | |
tree | 0c33aad5dc2e4ab7cb7a6b258c07ec6b48848e99 /src/main/java/at/hannibal2/skyhanni/mixins | |
parent | c6fd094ab8023588fd9369fe8e959b223d2ec312 (diff) | |
download | skyhanni-2b92f20b8a080be611447635b6f27a7651d49ca0.tar.gz skyhanni-2b92f20b8a080be611447635b6f27a7651d49ca0.tar.bz2 skyhanni-2b92f20b8a080be611447635b6f27a7651d49ca0.zip |
Fix: Armor Hider in Custom Wardrobe (#2449)
Co-authored-by: ItsEmpa <itsempa@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixins')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/mixins/transformers/renderer/MixinContributorRendererEntityLiving.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/renderer/MixinContributorRendererEntityLiving.java b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/renderer/MixinContributorRendererEntityLiving.java index 6fb71ccc0..b64fb9d82 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/renderer/MixinContributorRendererEntityLiving.java +++ b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/renderer/MixinContributorRendererEntityLiving.java @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.mixins.transformers.renderer; import at.hannibal2.skyhanni.mixins.hooks.RendererLivingEntityHook; +import at.hannibal2.skyhanni.utils.FakePlayer; import net.minecraft.client.renderer.entity.RendererLivingEntity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; @@ -33,8 +34,9 @@ public class MixinContributorRendererEntityLiving<T extends EntityLivingBase> { return true; } - @Inject(method = "rotateCorpse", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/EnumChatFormatting;getTextWithoutFormattingCodes(Ljava/lang/String;)Ljava/lang/String;", shift = At.Shift.AFTER)) + @Inject(method = "rotateCorpse", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/EnumChatFormatting;getTextWithoutFormattingCodes(Ljava/lang/String;)Ljava/lang/String;", shift = At.Shift.AFTER), cancellable = true) private void rotateThePlayer(T bat, float p_77043_2_, float p_77043_3_, float partialTicks, CallbackInfo ci) { + if (bat instanceof FakePlayer) ci.cancel(); if (bat instanceof EntityPlayer) { RendererLivingEntityHook.rotatePlayer((EntityPlayer) bat); } |