Fix build for 1.8

This commit is contained in:
Jonas Herzig
2021-11-29 16:21:00 +01:00
parent 6e1febdab8
commit dd055e5c5b
2 changed files with 10 additions and 4 deletions

View File

@@ -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
)