From f940f5c04fb112c92ea2a6ab49e179b9dc10f0b7 Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername Date: Thu, 29 Dec 2022 03:04:28 +0000 Subject: [PATCH] port selfnametags? --- src/main/java/net/minecraft/client/renderer/entity/Render.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/client/renderer/entity/Render.java b/src/main/java/net/minecraft/client/renderer/entity/Render.java index dc928c43..eab11bda 100644 --- a/src/main/java/net/minecraft/client/renderer/entity/Render.java +++ b/src/main/java/net/minecraft/client/renderer/entity/Render.java @@ -2,6 +2,7 @@ package net.minecraft.client.renderer.entity; import static net.lax1dude.eaglercraft.v1_8.opengl.RealOpenGLEnums.*; +import dev.resent.util.misc.W; import net.lax1dude.eaglercraft.v1_8.minecraft.EaglerTextureAtlasSprite; import net.lax1dude.eaglercraft.v1_8.opengl.EaglercraftGPU; import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager; @@ -68,7 +69,7 @@ public abstract class Render { } protected boolean canRenderName(T entity) { - return entity.getAlwaysRenderNameTagForRender() && entity.hasCustomName(); + return entity.getAlwaysRenderNameTagForRender() && entity.hasCustomName() || W.selfNametag().isEnabled(); } protected void renderOffsetLivingLabel(T entityIn, double x, double y, double z, String str, float parFloat1,