This commit is contained in:
kirillsaint 2023-07-01 20:07:23 +06:00
parent 8933b92951
commit acbe0a81a2

View File

@ -100,8 +100,7 @@ public class RendererLivingEntityMixin<T extends EntityLivingBase> {
if (!Minecraft.isGuiEnabled() && (!Client.getInstance().getModInstances().getModByClass(NametagsMod.class).isEnabled() || !Client.getInstance().getSettingsManager().getSettingByClass(NametagsMod.class, "Show in F1").getValBoolean())) {
cir.setReturnValue(false);
cir.cancel();
}
if(entity == Minecraft.getMinecraft().getRenderManager().livingPlayer && !entity.isInvisible() && (Client.getInstance().getModInstances().getModByClass(NametagsMod.class).isEnabled() && Client.getInstance().getSettingsManager().getSettingByClass(NametagsMod.class, "Show in F5").getValBoolean()) && !(Minecraft.getMinecraft().currentScreen instanceof GuiContainer) && !(Minecraft.getMinecraft().currentScreen instanceof CosmeticsGui) && !(Minecraft.getMinecraft().currentScreen instanceof AdminRender)) {
} else if(entity == Minecraft.getMinecraft().getRenderManager().livingPlayer && !entity.isInvisible() && (Client.getInstance().getModInstances().getModByClass(NametagsMod.class).isEnabled() && Client.getInstance().getSettingsManager().getSettingByClass(NametagsMod.class, "Show in F5").getValBoolean()) && !(Minecraft.getMinecraft().currentScreen instanceof GuiContainer) && !(Minecraft.getMinecraft().currentScreen instanceof CosmeticsGui) && !(Minecraft.getMinecraft().currentScreen instanceof AdminRender)) {
cir.setReturnValue(true);
cir.cancel();
}