Fix stereoscopic eye offset on 1.16+

The mapping between intermediary name on 1.15.2 and yarn on 1.16.1 has already
been added in the previous commit.
This commit is contained in:
Jonas Herzig
2022-03-06 10:30:29 +01:00
parent ee6b53b247
commit c146aa145c

View File

@@ -13,7 +13,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(GameRenderer.class)
public abstract class Mixin_Stereoscopic_Camera implements EntityRendererHandler.IEntityRenderer {
@Inject(method = "method_22973", at = @At("RETURN"), cancellable = true)
@Inject(method = "getBasicProjectionMatrix", at = @At("RETURN"), cancellable = true)
private void replayModRender_setupStereoscopicProjection(CallbackInfoReturnable<Matrix4f> ci) {
if (replayModRender_getHandler() != null) {
Matrix4f offset;