From da3aec8d8359d82e60bad58ea00e125fbd20ebf0 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 27 Jan 2024 00:22:27 +0000 Subject: [PATCH] Don't render debug info for the first person entity --- .../client/render/spell/SpellEffectsRenderDispatcher.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java index cbfdd7dc..37c4c51b 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java @@ -17,6 +17,7 @@ import com.minelittlepony.unicopia.entity.Living; import net.fabricmc.fabric.api.resource.IdentifiableResourceReloadListener; import net.minecraft.client.MinecraftClient; import net.minecraft.client.font.TextRenderer.TextLayerType; +import net.minecraft.client.option.Perspective; import net.minecraft.client.render.RenderLayer; import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.render.VertexConsumerProvider; @@ -83,7 +84,9 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader return Operation.SKIP; }, false); - if (client.getEntityRenderDispatcher().shouldRenderHitboxes() && !client.hasReducedDebugInfo()) { + if (client.getEntityRenderDispatcher().shouldRenderHitboxes() + && !client.hasReducedDebugInfo() + && !(caster.asEntity() == client.cameraEntity && client.options.getPerspective() == Perspective.FIRST_PERSON)) { renderHotspot(matrices, vertices, caster, animationProgress); renderSpellDebugInfo(matrices, vertices, caster, light); }