Skip to content

Commit

Permalink
Change remap parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishisherewithhh committed Sep 1, 2024
1 parent e605282 commit ee2c71b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/dev/heliosclient/mixin/GameRendererMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.spongepowered.asm.mixin.injection.Redirect;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;

@Mixin(GameRenderer.class)
public abstract class GameRendererMixin {
Expand All @@ -57,7 +56,7 @@ public abstract class GameRendererMixin {


// MeteorClient.com
@Inject(method = "renderWorld", at = @At(value = "INVOKE_STRING", target = "Lnet/minecraft/util/profiler/Profiler;swap(Ljava/lang/String;)V", args = {"ldc=hand"}), locals = LocalCapture.CAPTURE_FAILEXCEPTION)
@Inject(method = "renderWorld", at = @At(value = "INVOKE_STRING", target = "Lnet/minecraft/util/profiler/Profiler;swap(Ljava/lang/String;)V", args = {"ldc=hand"}))
private void render(float tickDelta, long limitTime, MatrixStack matrices, CallbackInfo ci) {
camera = client.gameRenderer.getCamera();

Expand All @@ -66,7 +65,7 @@ private void render(float tickDelta, long limitTime, MatrixStack matrices, Callb
GradientBlockRenderer.renderGradientBlocks();
}

@Inject(method = "getBasicProjectionMatrix", at = @At(value = "INVOKE", target = "Lorg/joml/Matrix4f;mul(Lorg/joml/Matrix4fc;)Lorg/joml/Matrix4f;"), cancellable = true,remap = false)
@Inject(method = "getBasicProjectionMatrix", at = @At(value = "INVOKE", target = "Lorg/joml/Matrix4f;mul(Lorg/joml/Matrix4fc;)Lorg/joml/Matrix4f;"), cancellable = true)
private void getBasicProjectionMatrix$ChangeAspectRatio(double fov, CallbackInfoReturnable<Matrix4f> cir) {
AspectRatio ratio = ModuleManager.get(AspectRatio.class);

Expand Down

0 comments on commit ee2c71b

Please sign in to comment.