mirror of
https://github.com/AntiCope/meteor-rejects.git
synced 2025-09-06 12:25:49 +00:00
20 lines
868 B
Java
20 lines
868 B
Java
package anticope.rejects.mixin;
|
|
|
|
import anticope.rejects.modules.Rendering;
|
|
import meteordevelopment.meteorclient.systems.modules.Modules;
|
|
import net.minecraft.client.render.TexturedRenderLayers;
|
|
import org.spongepowered.asm.mixin.Mixin;
|
|
import org.spongepowered.asm.mixin.injection.At;
|
|
import org.spongepowered.asm.mixin.injection.ModifyVariable;
|
|
|
|
@Mixin(TexturedRenderLayers.class)
|
|
public class TexturedRenderLayersMixin {
|
|
@ModifyVariable(method = "getChestTextureId(Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/block/enums/ChestType;Z)Lnet/minecraft/client/util/SpriteIdentifier;", at = @At("LOAD"), ordinal = 0)
|
|
private static boolean chrsitmas(boolean christmas) {
|
|
Rendering rendering = Modules.get().get(Rendering.class);
|
|
if (rendering != null && rendering.chistmas())
|
|
return true;
|
|
return christmas;
|
|
}
|
|
}
|