Fix chroma key rendering for 1.12.2 and below (fixes #589)
Forge naming strikes again, there's two different `updateCameraAndRender` in 1.14.4 forge, which lead us to use `updateCameraAndRender` for the older version as well even though our desired method had a different name back then.
This commit is contained in:
@@ -27,15 +27,12 @@ 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))
|
||||
//#elseif MC>=11400
|
||||
//$$ @ModifyConstant(method = "renderCenter", constant = @Constant(intValue = 4))
|
||||
//#elseif MC>=10809
|
||||
//$$ @ModifyConstant(method = "updateCameraAndRender(FJ)V", constant = @Constant(intValue = 4))
|
||||
//#else
|
||||
//$$ @ModifyConstant(method = "updateCameraAndRender(F)V", constant = @Constant(intValue = 4))
|
||||
//$$ @ModifyConstant(method = "renderWorldPass", constant = @Constant(intValue = 4))
|
||||
//#endif
|
||||
private int forceSkyWhenChromaKeying(int value) {
|
||||
EntityRendererHandler handler = ((EntityRendererHandler.IEntityRenderer) this.client.gameRenderer).replayModRender_getHandler();
|
||||
|
||||
Reference in New Issue
Block a user