diff --git a/game/src/main/java/me/mcblueparrot/client/mixin/mod/MixinHypixelAdditionsMod.java b/game/src/main/java/me/mcblueparrot/client/mixin/mod/MixinHypixelAdditionsMod.java index d97bf127..aa6ff4a3 100755 --- a/game/src/main/java/me/mcblueparrot/client/mixin/mod/MixinHypixelAdditionsMod.java +++ b/game/src/main/java/me/mcblueparrot/client/mixin/mod/MixinHypixelAdditionsMod.java @@ -6,6 +6,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import me.mcblueparrot.client.mod.impl.hypixeladditions.HypixelAdditionsMod; +import net.minecraft.client.Minecraft; import net.minecraft.client.entity.AbstractClientPlayer; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.entity.RenderManager; @@ -26,16 +27,13 @@ public void renderLevelhead(AbstractClientPlayer entityIn, double x, double y, d float p_177069_9_, double p_177069_10_, CallbackInfo callback) { if(HypixelAdditionsMod.isEffective()) { String levelhead = HypixelAdditionsMod.instance.getLevelhead(entityIn.getUniqueID()); - if(levelhead != null) { - renderLivingLabel( - entityIn, - EnumChatFormatting.AQUA + "Level: " + EnumChatFormatting.YELLOW + levelhead, - x, - y + ((double) ((float)this.getFontRendererFromRenderManager().FONT_HEIGHT - * 1.15F * p_177069_9_)), - z, - 64 - ); + if (levelhead != null && !(entityIn.getDisplayName().getFormattedText().contains( + EnumChatFormatting.OBFUSCATED.toString()) && entityIn != Minecraft.getMinecraft().thePlayer)) { + renderLivingLabel(entityIn, + EnumChatFormatting.AQUA + "Level: " + EnumChatFormatting.YELLOW + levelhead, x, + y + ((double) ((float) this.getFontRendererFromRenderManager().FONT_HEIGHT * 1.15F + * p_177069_9_)), + z, 64); } } } diff --git a/package-lock.json b/package-lock.json index 898612b5..05861629 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "Sol Client", - "version": "1.5.0", + "version": "1.5.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "Sol Client", - "version": "1.5.0", + "version": "1.5.2", "license": "MIT", "dependencies": { "archiver": "^5.3.0", diff --git a/package.json b/package.json index 2bcc1307..10312119 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Sol Client", - "version": "1.5.1", + "version": "1.5.2", "description": "Simple and easy to use Minecraft client.", "main": "main.js", "scripts": {