Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
fix iris compat mixins not remapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorenon committed Dec 14, 2021
1 parent a4a81c2 commit 767ef25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G

# Mod Properties
core_version = 0.1.0
play_version = 0.1.0
play_version = 0.1.1
maven_group = net.sorenon

# Dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public class MixinCameraUniforms {

@SuppressWarnings("UnresolvedMixinReference")
@Redirect(method = "getUnshiftedCameraPosition", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/Camera;getPosition()Lnet/minecraft/world/phys/Vec3;"))
@Redirect(method = "getUnshiftedCameraPosition", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/Camera;getPosition()Lnet/minecraft/world/phys/Vec3;", remap = true))
private static Vec3 mcxr$getPosition(Camera camera) {
return JOMLUtil.convert(MCXRPlayClient.viewSpacePoses.getGamePose().getPos());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public class MixinCameraUniforms113 {

@SuppressWarnings("UnresolvedMixinReference")
@Redirect(method = "getCameraPosition", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/Camera;getPosition()Lnet/minecraft/world/phys/Vec3;"))
@Redirect(method = "getCameraPosition", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/Camera;getPosition()Lnet/minecraft/world/phys/Vec3;", remap = true))
private static Vec3 mcxr$getPosition(Camera camera) {
return JOMLUtil.convert(MCXRPlayClient.viewSpacePoses.getGamePose().getPos());
}
Expand Down

0 comments on commit 767ef25

Please sign in to comment.