aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-09-03 09:59:27 +0200
committerGitHub <noreply@github.com>2024-09-03 09:59:27 +0200
commit2b92f20b8a080be611447635b6f27a7651d49ca0 (patch)
tree0c33aad5dc2e4ab7cb7a6b258c07ec6b48848e99 /src/main/java/at/hannibal2/skyhanni/features/misc
parentc6fd094ab8023588fd9369fe8e959b223d2ec312 (diff)
downloadskyhanni-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/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/HideArmor.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/HideArmor.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/HideArmor.kt
index 32365458f..edc4474cb 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/HideArmor.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/HideArmor.kt
@@ -9,6 +9,7 @@ import at.hannibal2.skyhanni.utils.ConfigUtils
import at.hannibal2.skyhanni.utils.EntityUtils.getArmorInventory
import at.hannibal2.skyhanni.utils.EntityUtils.hasPotionEffect
import at.hannibal2.skyhanni.utils.EntityUtils.isNPC
+import at.hannibal2.skyhanni.utils.FakePlayer
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.compat.Effects
import net.minecraft.client.entity.EntityPlayerSP
@@ -26,6 +27,7 @@ object HideArmor {
private fun shouldHideArmor(entity: EntityLivingBase): Boolean {
if (!LorenzUtils.inSkyBlock) return false
if (entity !is EntityPlayer) return false
+ if (entity is FakePlayer) return false
if (entity.hasPotionEffect(Effects.invisibility)) return false
if (entity.isNPC()) return false