mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 04:27:59 +01:00
Remove redundant blend call (has no effect since 1.14)
This commit is contained in:
parent
fadbea94d8
commit
92688f986c
1 changed files with 0 additions and 14 deletions
|
@ -35,17 +35,8 @@ public class EquineRenderManager<T extends LivingEntity, M extends EntityModel<T
|
|||
|
||||
private final IPonyRenderContext<T, M> renderer;
|
||||
|
||||
private boolean skipBlend;
|
||||
|
||||
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() {
|
||||
RenderSystem.disableBlend();
|
||||
}
|
||||
|
@ -54,10 +45,6 @@ public class EquineRenderManager<T extends LivingEntity, M extends EntityModel<T
|
|||
this.renderer = renderer;
|
||||
}
|
||||
|
||||
public void setSkipBlend() {
|
||||
skipBlend = true;
|
||||
}
|
||||
|
||||
public Frustum getFrustrum(T entity, Frustum vanilla) {
|
||||
if (entity.isSleeping() || !MineLittlePony.getInstance().getConfig().frustrum.get()) {
|
||||
return vanilla;
|
||||
|
@ -70,7 +57,6 @@ public class EquineRenderManager<T extends LivingEntity, M extends EntityModel<T
|
|||
|
||||
float s = getScaleFactor();
|
||||
stack.scale(s, s, s);
|
||||
enableModelRenderProfile(skipBlend);
|
||||
|
||||
translateRider(entity, stack, ticks);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue