From 7f5c622f381bd4c0f846e544fd9e96e503397d97 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Wed, 27 Sep 2023 15:33:08 +0200 Subject: [PATCH 1/9] Switch Yaw and Pitch for 1.20.2 --- .../deathfinder/v1_20_2/mixins/DeathScreenMixin.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/game-runner/src/v1_20_2/java/com/rappytv/deathfinder/v1_20_2/mixins/DeathScreenMixin.java b/game-runner/src/v1_20_2/java/com/rappytv/deathfinder/v1_20_2/mixins/DeathScreenMixin.java index 1bf0875..e956ad4 100644 --- a/game-runner/src/v1_20_2/java/com/rappytv/deathfinder/v1_20_2/mixins/DeathScreenMixin.java +++ b/game-runner/src/v1_20_2/java/com/rappytv/deathfinder/v1_20_2/mixins/DeathScreenMixin.java @@ -22,20 +22,16 @@ protected DeathScreenMixin(Component title) { @Inject(method = "init", at = @At("TAIL")) public void onDeathScreen(CallbackInfo ci) { - System.out.println("\n\n1\n\n"); if(this.minecraft == null || this.minecraft.player == null) return; - System.out.println("\n\n2\n\n"); LocalPlayer player = this.minecraft.player; Location deathLocation = new Location(player.getX(), player.getY(), player.getZ()); if(DeathFinderAddon.get().configuration().saveRotation().get()) { - deathLocation.setYaw(player.getXRot()); - deathLocation.setPitch(player.getYRot()); - System.out.println("\n\n3\n\n"); + deathLocation.setYaw(player.getYRot()); + deathLocation.setPitch(player.getXRot()); } if(deathLocation.equals(DeathFinderAddon.getDeathLocation())) return; - System.out.println("\n\n4\n\n"); Laby.fireEvent(new DeathEvent(deathLocation)); } From 4b739a0c8aa0bcbcd269ba81fb0a43d56ad57bdd Mon Sep 17 00:00:00 2001 From: RappyTV Date: Wed, 27 Sep 2023 15:37:31 +0200 Subject: [PATCH 2/9] Switch Yaw and Pitch for 1.20.1 --- .../rappytv/deathfinder/v1_20_1/mixins/DeathScreenMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game-runner/src/v1_20_1/java/com/rappytv/deathfinder/v1_20_1/mixins/DeathScreenMixin.java b/game-runner/src/v1_20_1/java/com/rappytv/deathfinder/v1_20_1/mixins/DeathScreenMixin.java index 34b4e4c..03dd72b 100644 --- a/game-runner/src/v1_20_1/java/com/rappytv/deathfinder/v1_20_1/mixins/DeathScreenMixin.java +++ b/game-runner/src/v1_20_1/java/com/rappytv/deathfinder/v1_20_1/mixins/DeathScreenMixin.java @@ -28,8 +28,8 @@ public void onDeathScreen(CallbackInfo ci) { Location deathLocation = new Location(player.getX(), player.getY(), player.getZ()); if(DeathFinderAddon.get().configuration().saveRotation().get()) { - deathLocation.setYaw(player.getXRot()); - deathLocation.setPitch(player.getYRot()); + deathLocation.setYaw(player.getYRot()); + deathLocation.setPitch(player.getXRot()); } if(deathLocation.equals(DeathFinderAddon.getDeathLocation())) return; From 95c9c73d19495506182ff7483d0c8becfc24b5c2 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Wed, 27 Sep 2023 15:40:39 +0200 Subject: [PATCH 3/9] Switch Yaw and Pitch for 1.19.4 --- .../rappytv/deathfinder/v1_19_4/mixins/DeathScreenMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game-runner/src/v1_19_4/java/com/rappytv/deathfinder/v1_19_4/mixins/DeathScreenMixin.java b/game-runner/src/v1_19_4/java/com/rappytv/deathfinder/v1_19_4/mixins/DeathScreenMixin.java index fa66330..88ab134 100644 --- a/game-runner/src/v1_19_4/java/com/rappytv/deathfinder/v1_19_4/mixins/DeathScreenMixin.java +++ b/game-runner/src/v1_19_4/java/com/rappytv/deathfinder/v1_19_4/mixins/DeathScreenMixin.java @@ -28,8 +28,8 @@ public void onDeathScreen(CallbackInfo ci) { Location deathLocation = new Location(player.getX(), player.getY(), player.getZ()); if(DeathFinderAddon.get().configuration().saveRotation().get()) { - deathLocation.setYaw(player.getXRot()); - deathLocation.setPitch(player.getYRot()); + deathLocation.setYaw(player.getYRot()); + deathLocation.setPitch(player.getXRot()); } if(deathLocation.equals(DeathFinderAddon.getDeathLocation())) return; From cf9d4940394501f9789b0376c1c656240818c43a Mon Sep 17 00:00:00 2001 From: RappyTV Date: Wed, 27 Sep 2023 15:43:59 +0200 Subject: [PATCH 4/9] Switch Yaw and Pitch for 1.19.3 --- .../rappytv/deathfinder/v1_19_3/mixins/DeathScreenMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game-runner/src/v1_19_3/java/com/rappytv/deathfinder/v1_19_3/mixins/DeathScreenMixin.java b/game-runner/src/v1_19_3/java/com/rappytv/deathfinder/v1_19_3/mixins/DeathScreenMixin.java index ccb8ec6..348f42f 100644 --- a/game-runner/src/v1_19_3/java/com/rappytv/deathfinder/v1_19_3/mixins/DeathScreenMixin.java +++ b/game-runner/src/v1_19_3/java/com/rappytv/deathfinder/v1_19_3/mixins/DeathScreenMixin.java @@ -28,8 +28,8 @@ public void onDeathScreen(CallbackInfo ci) { Location deathLocation = new Location(player.getX(), player.getY(), player.getZ()); if(DeathFinderAddon.get().configuration().saveRotation().get()) { - deathLocation.setYaw(player.getXRot()); - deathLocation.setPitch(player.getYRot()); + deathLocation.setYaw(player.getYRot()); + deathLocation.setPitch(player.getXRot()); } if(deathLocation.equals(DeathFinderAddon.getDeathLocation())) return; From f752c4bf1a3705c4deb6c1a1b97c0d96ef44fb01 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Wed, 27 Sep 2023 15:48:36 +0200 Subject: [PATCH 5/9] Switch Yaw and Pitch for 1.19.2 --- .../rappytv/deathfinder/v1_19_2/mixins/DeathScreenMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game-runner/src/v1_19_2/java/com/rappytv/deathfinder/v1_19_2/mixins/DeathScreenMixin.java b/game-runner/src/v1_19_2/java/com/rappytv/deathfinder/v1_19_2/mixins/DeathScreenMixin.java index 1179aed..43c482c 100644 --- a/game-runner/src/v1_19_2/java/com/rappytv/deathfinder/v1_19_2/mixins/DeathScreenMixin.java +++ b/game-runner/src/v1_19_2/java/com/rappytv/deathfinder/v1_19_2/mixins/DeathScreenMixin.java @@ -28,8 +28,8 @@ public void onDeathScreen(CallbackInfo ci) { Location deathLocation = new Location(player.getX(), player.getY(), player.getZ()); if(DeathFinderAddon.get().configuration().saveRotation().get()) { - deathLocation.setYaw(player.getXRot()); - deathLocation.setPitch(player.getYRot()); + deathLocation.setYaw(player.getYRot()); + deathLocation.setPitch(player.getXRot()); } if(deathLocation.equals(DeathFinderAddon.getDeathLocation())) return; From 660b3d36585c800415641f241a6a5c56348b8683 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Wed, 27 Sep 2023 15:54:47 +0200 Subject: [PATCH 6/9] Switch Yaw and Pitch for 1.17.1 --- .../rappytv/deathfinder/v1_17_1/mixins/DeathScreenMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game-runner/src/v1_17_1/java/com/rappytv/deathfinder/v1_17_1/mixins/DeathScreenMixin.java b/game-runner/src/v1_17_1/java/com/rappytv/deathfinder/v1_17_1/mixins/DeathScreenMixin.java index 063c00c..05cb3eb 100644 --- a/game-runner/src/v1_17_1/java/com/rappytv/deathfinder/v1_17_1/mixins/DeathScreenMixin.java +++ b/game-runner/src/v1_17_1/java/com/rappytv/deathfinder/v1_17_1/mixins/DeathScreenMixin.java @@ -28,8 +28,8 @@ public void onDeathScreen(CallbackInfo ci) { Location deathLocation = new Location(player.getX(), player.getY(), player.getZ()); if(DeathFinderAddon.get().configuration().saveRotation().get()) { - deathLocation.setYaw(player.getXRot()); - deathLocation.setPitch(player.getYRot()); + deathLocation.setYaw(player.getYRot()); + deathLocation.setPitch(player.getXRot()); } if(deathLocation.equals(DeathFinderAddon.getDeathLocation())) return; From e5d95b7e9884f9561617e35502b3900cd7612355 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Wed, 27 Sep 2023 16:27:06 +0200 Subject: [PATCH 7/9] Switch Yaw and Pitch for 1.18.2 --- .../rappytv/deathfinder/v1_18_2/mixins/DeathScreenMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game-runner/src/v1_18_2/java/com/rappytv/deathfinder/v1_18_2/mixins/DeathScreenMixin.java b/game-runner/src/v1_18_2/java/com/rappytv/deathfinder/v1_18_2/mixins/DeathScreenMixin.java index f7dd36a..17cf70a 100644 --- a/game-runner/src/v1_18_2/java/com/rappytv/deathfinder/v1_18_2/mixins/DeathScreenMixin.java +++ b/game-runner/src/v1_18_2/java/com/rappytv/deathfinder/v1_18_2/mixins/DeathScreenMixin.java @@ -28,8 +28,8 @@ public void onDeathScreen(CallbackInfo ci) { Location deathLocation = new Location(player.getX(), player.getY(), player.getZ()); if(DeathFinderAddon.get().configuration().saveRotation().get()) { - deathLocation.setYaw(player.getXRot()); - deathLocation.setPitch(player.getYRot()); + deathLocation.setYaw(player.getYRot()); + deathLocation.setPitch(player.getXRot()); } if(deathLocation.equals(DeathFinderAddon.getDeathLocation())) return; From 2ea38b0e7a61a053517d0571e0729fe006ba5d90 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Wed, 27 Sep 2023 16:28:45 +0200 Subject: [PATCH 8/9] Bump version --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 9f0d90d..4d36723 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,7 +21,7 @@ labyMod { author = "RappyTV" description = "This addon saves your last death point, so you can find your items again." minecraftVersion = "1.8<1.20.2" - version = System.getenv().getOrDefault("VERSION", "1.0.3") + version = System.getenv().getOrDefault("VERSION", "1.0.4") } minecraft { From 3d9cb0a01d9af910bccf5615a9dcf5d9239cdb59 Mon Sep 17 00:00:00 2001 From: RappyTV Date: Wed, 27 Sep 2023 16:31:28 +0200 Subject: [PATCH 9/9] Switch Yaw and Pitch for 1.16.5 --- .../rappytv/deathfinder/v1_16_5/mixins/DeathScreenMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game-runner/src/v1_16_5/java/com/rappytv/deathfinder/v1_16_5/mixins/DeathScreenMixin.java b/game-runner/src/v1_16_5/java/com/rappytv/deathfinder/v1_16_5/mixins/DeathScreenMixin.java index 4baf364..4e14acb 100644 --- a/game-runner/src/v1_16_5/java/com/rappytv/deathfinder/v1_16_5/mixins/DeathScreenMixin.java +++ b/game-runner/src/v1_16_5/java/com/rappytv/deathfinder/v1_16_5/mixins/DeathScreenMixin.java @@ -28,8 +28,8 @@ public void onDeathScreen(CallbackInfo ci) { Location deathLocation = new Location(player.getX(), player.getY(), player.getZ()); if(DeathFinderAddon.get().configuration().saveRotation().get()) { - deathLocation.setYaw(player.xRot); - deathLocation.setPitch(player.yRot); + deathLocation.setYaw(player.yRot); + deathLocation.setPitch(player.xRot); } if(deathLocation.equals(DeathFinderAddon.getDeathLocation())) return;