/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.llamalad7.mixinextras.injector.ModifyExpressionValue
 *  net.minecraft.class_10529
 *  org.spongepowered.asm.mixin.Mixin
 *  org.spongepowered.asm.mixin.injection.At
 */
package meteordevelopment.meteorclient.mixin;

import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.systems.modules.render.NoRender;
import net.minecraft.class_10529;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

@Mixin(value={class_10529.class})
public abstract class AbstractSignBlockEntityRendererMixin {
    @ModifyExpressionValue(method={"method_65828"}, at={@At(value="CONSTANT", args={"intValue=4", "ordinal=1"})})
    private int loopTextLengthProxy(int i) {
        if (Modules.get().get(NoRender.class).noSignText()) {
            return 0;
        }
        return i;
    }
}

