aboutsummaryrefslogtreecommitdiff
path: root/versions/src/main/java/cc/polyfrost/oneconfig
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-07-07 12:34:10 +0900
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-07-07 12:34:10 +0900
commitc9858f8884c606d7b2d673a93f84c1f00822dcfe (patch)
treeb8b51addc47748cb82c8ab1f56b1269ef20ec7f6 /versions/src/main/java/cc/polyfrost/oneconfig
parent52350839ef257791aaeaab2cfd464f4d0fba3377 (diff)
downloadOneConfig-c9858f8884c606d7b2d673a93f84c1f00822dcfe.tar.gz
OneConfig-c9858f8884c606d7b2d673a93f84c1f00822dcfe.tar.bz2
OneConfig-c9858f8884c606d7b2d673a93f84c1f00822dcfe.zip
make egg 1 customizable
Diffstat (limited to 'versions/src/main/java/cc/polyfrost/oneconfig')
-rw-r--r--versions/src/main/java/cc/polyfrost/oneconfig/internal/eggs/TechnobladeCrownRenderer.java3
1 files changed, 2 insertions, 1 deletions
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<T extends EntityPig> 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);