/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  net.minecraft.class_11690
 *  net.minecraft.class_11788
 *  net.minecraft.class_4597$class_4598
 *  org.spongepowered.asm.mixin.Mixin
 *  org.spongepowered.asm.mixin.injection.At
 *  org.spongepowered.asm.mixin.injection.Inject
 *  org.spongepowered.asm.mixin.injection.callback.CallbackInfo
 */
package meteordevelopment.meteorclient.mixin;

import net.minecraft.class_11690;
import net.minecraft.class_11788;
import net.minecraft.class_4597;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(value={class_11690.class})
public abstract class ShadowPiecesCommandRendererMixin {
    @Inject(method={"method_73015"}, at={@At(value="HEAD")}, cancellable=true)
    private void meteor$onRender(class_11788 queue, class_4597.class_4598 vertexConsumers, CallbackInfo info) {
        if (queue.method_73505().isEmpty()) {
            info.cancel();
        }
    }
}

