From c9858f8884c606d7b2d673a93f84c1f00822dcfe Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Thu, 7 Jul 2022 12:34:10 +0900 Subject: make egg 1 customizable --- .../cc/polyfrost/oneconfig/internal/eggs/TechnobladeCrownRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'versions/src/main/java/cc/polyfrost/oneconfig') diff --git a/versions/src/main/java/cc/polyfrost/oneconfig/internal/eggs/TechnobladeCrownRenderer.java b/versions/src/main/java/cc/polyfrost/oneconfig/internal/eggs/TechnobladeCrownRenderer.java index b7e11b8..f5e7bed 100644 --- a/versions/src/main/java/cc/polyfrost/oneconfig/internal/eggs/TechnobladeCrownRenderer.java +++ b/versions/src/main/java/cc/polyfrost/oneconfig/internal/eggs/TechnobladeCrownRenderer.java @@ -1,6 +1,7 @@ //#if MC<=11202 package cc.polyfrost.oneconfig.internal.eggs; +import cc.polyfrost.oneconfig.internal.config.Preferences; import net.minecraft.client.model.ModelPig; import net.minecraft.client.renderer.entity.RenderPig; import net.minecraft.client.renderer.entity.layers.LayerRenderer; @@ -23,7 +24,7 @@ public class TechnobladeCrownRenderer implements LayerRende @Override public void doRenderLayer(T entitylivingbaseIn, float f, float g, float partialTicks, float h, float i, float j, float scale) { - if (entitylivingbaseIn.hasCustomName() && entitylivingbaseIn.getCustomNameTag().equals("Technoblade")) { + if (Preferences.easterEgg1 && entitylivingbaseIn.hasCustomName() && entitylivingbaseIn.getCustomNameTag().equals("Technoblade")) { this.renderer.bindTexture(CROWN_TEXTURE); this.pigModel.setModelAttributes(renderer.getMainModel()); this.pigModel.render(entitylivingbaseIn, f, g, h, i, j, scale); -- cgit