Skip to content

Commit

Permalink
Trying to get compat with commit 00d3ecd
Browse files Browse the repository at this point in the history
Part 3 of many
  • Loading branch information
PinguinLars authored Dec 24, 2024
1 parent 4ef8b50 commit bc3ab5a
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/main/java/com/wildfire/render/GenderLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
import org.joml.*;

import static com.wildfire.main.WildfireHelper.isAroundChristmas;
import static com.wildfire.main.WildfireHelper.isAroundHalloween;

@Environment(EnvType.CLIENT)
public class GenderLayer<S extends BipedEntityRenderState, M extends BipedEntityModel<S>> extends FeatureRenderer<S, M> {
Expand All @@ -72,7 +71,6 @@ public class GenderLayer<S extends BipedEntityRenderState, M extends BipedEntity
private final FeatureRendererContext<S, M> context;

private boolean isChristmas = isAroundChristmas();
private boolean isHalloween = isAroundHalloween();

private float preBreastSize, preBreastOffsetZ;
private Breasts breasts;
Expand Down Expand Up @@ -187,31 +185,6 @@ public void render(MatrixStack matrixStack, VertexConsumerProvider vertexConsume
WildfireGender.LOGGER.error("Failed to render breast layer", e);
}
}

//Halloween mask (Uses santa but recolored, because I'm not creative) //-PinguinLars
if(isHalloween && entityConfig instanceof PlayerConfig plrConfig && plrConfig.hasHolidayThemes()) {
try {
int overlay = LivingEntityRenderer.getOverlay(state, 0);
RenderLayer hatRenderType = RenderLayer.getEntityTranslucent(Identifier.of(WildfireGender.MODID, "textures/halloween_mask.png"));
if (hatRenderType == null) return;
VertexConsumer vertexConsumer = vertexConsumerProvider.getBuffer(hatRenderType);

if (state.baby) {
matrixStack.scale(state.ageScale, state.ageScale, state.ageScale);
matrixStack.translate(0f, 0.75f, 0f);
}

ModelPart mPart = getContextModel().head;
matrixStack.translate(mPart.pivotX * 0.0625f, mPart.pivotY * 0.0625f, mPart.pivotZ * 0.0625f);
if (mPart.roll != 0.0F || mPart.yaw != 0.0F || mPart.pitch != 0.0F) {
matrixStack.multiply(new Quaternionf().rotationZYX(mPart.roll, mPart.yaw, mPart.pitch));
}

santaHat.render(matrixStack, vertexConsumer, light, overlay);
} catch (Exception e) {
WildfireGender.LOGGER.error("Failed to render breast layer", e);
}
}
}

/**
Expand Down

0 comments on commit bc3ab5a

Please sign in to comment.