diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt index cde4acdf4..996273a64 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/HideFarEntities.kt @@ -7,6 +7,7 @@ import at.hannibal2.skyhanni.features.garden.GardenAPI import at.hannibal2.skyhanni.utils.EntityUtils import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer import at.hannibal2.skyhanni.utils.LorenzUtils +import net.minecraft.entity.boss.EntityWither import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class HideFarEntities { @@ -30,7 +31,9 @@ class HideFarEntities { @SubscribeEvent fun onCheckRender(event: CheckRenderEntityEvent<*>) { - if (isEnabled() && event.entity.entityId in ignored) { + val entity = event.entity + if (entity is EntityWither && entity.entityId < 0) return + if (isEnabled() && entity.entityId in ignored) { event.cancel() } } |