Skip to content

Commit

Permalink
Fallback RenderType impl
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Apr 20, 2023
1 parent 14bdbec commit e8715eb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package net.coderbot.batchedentityrendering.mixin;

import net.coderbot.batchedentityrendering.impl.BlendingStateHolder;
import net.coderbot.batchedentityrendering.impl.TransparencyType;
import net.minecraft.client.renderer.RenderType;
import org.spongepowered.asm.mixin.Mixin;

@Mixin(RenderType.class)
public class MixinRenderType implements BlendingStateHolder {
// Fallback
@Override
public TransparencyType getTransparencyType() {
return TransparencyType.GENERAL_TRANSPARENT;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"MixinBufferBuilder",
"MixinBufferBuilder_SegmentRendering",
"MixinRenderBuffers",
"MixinRenderType",
"MixinDebugScreenOverlay",
"MixinFishingHookRenderer",
"MixinBufferSource",
Expand Down

0 comments on commit e8715eb

Please sign in to comment.