Fix build for 1.8
This commit is contained in:
@@ -27,14 +27,15 @@ import net.minecraft.client.render.WorldRenderer;
|
||||
public abstract class Mixin_ChromaKeyForceSky {
|
||||
@Shadow @Final private MinecraftClient client;
|
||||
|
||||
// FIXME preprocessor bug: should be able to remap these
|
||||
//#if MC>=11500
|
||||
@ModifyConstant(method = "render", constant = @Constant(intValue = 4))
|
||||
//#else
|
||||
//#if MC>=11400
|
||||
//#elseif MC>=11400
|
||||
//$$ @ModifyConstant(method = "renderCenter", constant = @Constant(intValue = 4))
|
||||
//#else
|
||||
//#elseif MC>=10809
|
||||
//$$ @ModifyConstant(method = "updateCameraAndRender(FJ)V", constant = @Constant(intValue = 4))
|
||||
//#endif
|
||||
//#else
|
||||
//$$ @ModifyConstant(method = "updateCameraAndRender(F)V", constant = @Constant(intValue = 4))
|
||||
//#endif
|
||||
private int forceSkyWhenChromaKeying(int value) {
|
||||
EntityRendererHandler handler = ((EntityRendererHandler.IEntityRenderer) this.client.gameRenderer).replayModRender_getHandler();
|
||||
|
||||
@@ -10,7 +10,12 @@ import org.spongepowered.asm.mixin.injection.ModifyArg;
|
||||
@Mixin(GameRenderer.class)
|
||||
public abstract class Mixin_PreserveDepthDuringHandRendering {
|
||||
@ModifyArg(
|
||||
// FIXME preprocessor bug: 1.8.9 uses method with `(FJ)V` when just name would be enough
|
||||
//#if MC>=10809
|
||||
method = "renderWorld",
|
||||
//#else
|
||||
//$$ method = "updateCameraAndRender(F)V",
|
||||
//#endif
|
||||
at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/systems/RenderSystem;clear(IZ)V"),
|
||||
index = 0
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user