Fixed a mixin apply error when starting the game.

This commit is contained in:
Sollace 2019-06-10 23:47:38 +02:00
parent b9b8ba75ea
commit fa3f26172e

View file

@ -16,8 +16,7 @@ public abstract class MixinGlStateManager {
@Inject(method = "setProfile(" @Inject(method = "setProfile("
+ "Lcom/mojang/blaze3d/platform/GlStateManager$RenderMode;)V", + "Lcom/mojang/blaze3d/platform/GlStateManager$RenderMode;)V",
at = @At("HEAD"), at = @At("HEAD"),
cancellable = true, cancellable = true)
remap = false)
private static void enableBlendProfile(GlStateManager.RenderMode profile, CallbackInfo info) { private static void enableBlendProfile(GlStateManager.RenderMode profile, CallbackInfo info) {
if (profile == GlStateManager.RenderMode.PLAYER_SKIN && PonySkullRenderer.ponyInstance.usesTransparency()) { if (profile == GlStateManager.RenderMode.PLAYER_SKIN && PonySkullRenderer.ponyInstance.usesTransparency()) {
LevitatingItemRenderer.enableItemGlowRenderProfile(); LevitatingItemRenderer.enableItemGlowRenderProfile();