Remove redundant blend call (has no effect since 1.14)

This commit is contained in:
Sollace 2023-03-27 17:04:40 +01:00
parent fadbea94d8
commit 92688f986c

View file

@ -35,17 +35,8 @@ public class EquineRenderManager<T extends LivingEntity, M extends EntityModel<T
private final IPonyRenderContext<T, M> renderer; private final IPonyRenderContext<T, M> renderer;
private boolean skipBlend;
private final FrustrumCheck<T> frustrum = new FrustrumCheck<>(this); private final FrustrumCheck<T> frustrum = new FrustrumCheck<>(this);
public static void enableModelRenderProfile(boolean skipBlend) {
RenderSystem.enableBlend();
if (!skipBlend) {
RenderSystem.blendFunc(SrcFactor.SRC_ALPHA, DstFactor.ONE_MINUS_SRC_ALPHA);
}
}
public static void disableModelRenderProfile() { public static void disableModelRenderProfile() {
RenderSystem.disableBlend(); RenderSystem.disableBlend();
} }
@ -54,10 +45,6 @@ public class EquineRenderManager<T extends LivingEntity, M extends EntityModel<T
this.renderer = renderer; this.renderer = renderer;
} }
public void setSkipBlend() {
skipBlend = true;
}
public Frustum getFrustrum(T entity, Frustum vanilla) { public Frustum getFrustrum(T entity, Frustum vanilla) {
if (entity.isSleeping() || !MineLittlePony.getInstance().getConfig().frustrum.get()) { if (entity.isSleeping() || !MineLittlePony.getInstance().getConfig().frustrum.get()) {
return vanilla; return vanilla;
@ -70,7 +57,6 @@ public class EquineRenderManager<T extends LivingEntity, M extends EntityModel<T
float s = getScaleFactor(); float s = getScaleFactor();
stack.scale(s, s, s); stack.scale(s, s, s);
enableModelRenderProfile(skipBlend);
translateRider(entity, stack, ticks); translateRider(entity, stack, ticks);
} }