Skip to content

Commit

Permalink
Fallback RenderType impl
Browse files Browse the repository at this point in the history
Fallback RenderType impl

Co-Authored-By: IMS <[email protected]>
  • Loading branch information
Asek3 and IMS212 committed Nov 14, 2023
1 parent 43b4e6b commit 73d527e
Showing 1 changed file with 15 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;
}
}

0 comments on commit 73d527e

Please sign in to comment.