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 {
|
public abstract class Mixin_ChromaKeyForceSky {
|
||||||
@Shadow @Final private MinecraftClient client;
|
@Shadow @Final private MinecraftClient client;
|
||||||
|
|
||||||
// FIXME preprocessor bug: should be able to remap these
|
|
||||||
//#if MC>=11500
|
//#if MC>=11500
|
||||||
@ModifyConstant(method = "render", constant = @Constant(intValue = 4))
|
@ModifyConstant(method = "render", constant = @Constant(intValue = 4))
|
||||||
//#elseif MC>=11400
|
//#elseif MC>=11400
|
||||||
//$$ @ModifyConstant(method = "renderCenter", constant = @Constant(intValue = 4))
|
//$$ @ModifyConstant(method = "renderCenter", constant = @Constant(intValue = 4))
|
||||||
//#elseif MC>=10809
|
|
||||||
//$$ @ModifyConstant(method = "updateCameraAndRender(FJ)V", constant = @Constant(intValue = 4))
|
|
||||||
//#else
|
//#else
|
||||||
//$$ @ModifyConstant(method = "updateCameraAndRender(F)V", constant = @Constant(intValue = 4))
|
//$$ @ModifyConstant(method = "renderWorldPass", constant = @Constant(intValue = 4))
|
||||||
//#endif
|
//#endif
|
||||||
private int forceSkyWhenChromaKeying(int value) {
|
private int forceSkyWhenChromaKeying(int value) {
|
||||||
EntityRendererHandler handler = ((EntityRendererHandler.IEntityRenderer) this.client.gameRenderer).replayModRender_getHandler();
|
EntityRendererHandler handler = ((EntityRendererHandler.IEntityRenderer) this.client.gameRenderer).replayModRender_getHandler();
|
||||||
|
|||||||
Reference in New Issue
Block a user