From 4b20d92f25df9a054044a50a3c08f64aea815ac6 Mon Sep 17 00:00:00 2001 From: GalvinPython Date: Tue, 30 Dec 2025 16:31:41 +0000 Subject: [PATCH 1/3] fix: 1.21.9 player api changes --- README.md | 15 +++++++++++---- gradle.properties | 13 ++++++------- .../me/imgalvin/playerfinder/PlayerFinder.java | 4 ++-- src/main/resources/fabric.mod.json | 4 ++-- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index c520328..50d39ef 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,13 @@ Use the `/findplayer` command and enter the player's name. There is also a dropd ![Usage](https://raw.githubusercontent.com/GalvinPython/minecraft-playerfinder/main/.github/assets/javaw_QXmxvWN79i.png) # Compatible Versions -| Mod Version | Game Version(s) | Mod Version Title | -|-------------|-----------------|-------------------| -| 1.0.1 | 1.21 - 1.21.1 | 1.0.1+1.21 | -| 1.0.0 | 1.21 - 1.21.1 | 1.0.0+1.21 | +[![Supported versions](https://modrinth-shields.imgalvin.me/badge/playerfinder)](https://modrinth.com/mod/playerfinder) + +AutoTorcher is available for Minecraft versions 1.20 and above! + +Due to the frequency of Minecraft updates now, each Minecraft version has its own .jar file from 1.21.9 and above. This is mainly to prevent crashes from each drop. + +Please also keep your loader and Fabric API up to date to ensure the best compatibility! # Important Note This mod is a **server-side** mod! You are **not** required to install this mod on the client-side, unless you are using the "Open to LAN" feature to create a server on your world. @@ -26,6 +29,10 @@ Also: This mod requires the **Fabric API** and Fabric Loader **0.16.0 or higher PS: *You cannot use this mod on servers that don't use this mod. The commands are created server-side* # Changelog +## 1.0.2 (1.21.9) +* For 1.21.9 compatibility +* Updated dependencies (this is really important!) + ## 1.0.1 * Added colours to the co-ordinates depending on the dimension * Updated dimensions to remove "the" in the name diff --git a/gradle.properties b/gradle.properties index 9b3541d..71ffc4c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,19 +1,18 @@ -# Done to increase the memory available to gradle. +# Done to increase the memory available to Gradle. org.gradle.jvmargs=-Xmx1G org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.21 -yarn_mappings=1.21+build.9 -loader_version=0.16.0 +minecraft_version=1.21.9 +yarn_mappings=1.21.9+build.1 +loader_version=0.18.4 loom_version=1.14-SNAPSHOT - # Mod Properties -mod_version=1.0.1+1.21 +mod_version=1.0.2+1.21.9 maven_group=me.imgalvin.playerfinder archives_base_name=player-finder # Dependencies -fabric_version=0.102.0+1.21 \ No newline at end of file +fabric_version=0.134.1+1.21.9 \ No newline at end of file diff --git a/src/main/java/me/imgalvin/playerfinder/PlayerFinder.java b/src/main/java/me/imgalvin/playerfinder/PlayerFinder.java index eb77c28..61b9f19 100644 --- a/src/main/java/me/imgalvin/playerfinder/PlayerFinder.java +++ b/src/main/java/me/imgalvin/playerfinder/PlayerFinder.java @@ -30,8 +30,8 @@ public void onInitialize() { BlockPos targetBlockPos = targetPlayer.getBlockPos(); BlockPos sourceBlockPos = sourcePlayer.getBlockPos(); - RegistryKey playerDimension = targetPlayer.getWorld().getRegistryKey(); - RegistryKey sourceDimension = sourcePlayer.getWorld().getRegistryKey(); + RegistryKey playerDimension = targetPlayer.getEntityWorld().getRegistryKey(); + RegistryKey sourceDimension = sourcePlayer.getEntityWorld().getRegistryKey(); boolean isSameDimension = sourceDimension == playerDimension; diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 5196eb1..7485360 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -21,8 +21,8 @@ }, "depends": { "fabricloader": ">=0.16.0", - "minecraft": "~1.21", + "minecraft": "1.21.9", "java": ">=21", - "fabric-api": "*" + "fabric-api": ">=0.134.1" } } \ No newline at end of file From 5a0f35af91843ea6dfa9a5df8d8b9593a1302e33 Mon Sep 17 00:00:00 2001 From: GalvinPython Date: Tue, 30 Dec 2025 16:53:06 +0000 Subject: [PATCH 2/3] chore: update to 1.21.10 --- gradle.properties | 8 ++++---- src/main/resources/fabric.mod.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gradle.properties b/gradle.properties index 71ffc4c..c60011b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,15 +4,15 @@ org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.21.9 -yarn_mappings=1.21.9+build.1 +minecraft_version=1.21.10 +yarn_mappings=1.21.10+build.3 loader_version=0.18.4 loom_version=1.14-SNAPSHOT # Mod Properties -mod_version=1.0.2+1.21.9 +mod_version=1.0.3+1.21.10 maven_group=me.imgalvin.playerfinder archives_base_name=player-finder # Dependencies -fabric_version=0.134.1+1.21.9 \ No newline at end of file +fabric_version=0.138.4+1.21.10 \ No newline at end of file diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 7485360..385c358 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -21,8 +21,8 @@ }, "depends": { "fabricloader": ">=0.16.0", - "minecraft": "1.21.9", + "minecraft": "1.21.10", "java": ">=21", - "fabric-api": ">=0.134.1" + "fabric-api": ">=0.138.4" } } \ No newline at end of file From ca7902db77c792cd3d2978d4f368130cb1b41272 Mon Sep 17 00:00:00 2001 From: GalvinPython Date: Tue, 30 Dec 2025 16:54:01 +0000 Subject: [PATCH 3/3] oops --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 50d39ef..97d0b20 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,10 @@ Also: This mod requires the **Fabric API** and Fabric Loader **0.16.0 or higher PS: *You cannot use this mod on servers that don't use this mod. The commands are created server-side* # Changelog +## 1.0.3 (1.22.10) +* For 1.22.10 compatibility +* Updated dependencies + ## 1.0.2 (1.21.9) * For 1.21.9 compatibility * Updated dependencies (this is really important!)