diff --git a/README.md b/README.md index c520328..97d0b20 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,14 @@ 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!) + ## 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..c60011b 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.10 +yarn_mappings=1.21.10+build.3 +loader_version=0.18.4 loom_version=1.14-SNAPSHOT - # Mod Properties -mod_version=1.0.1+1.21 +mod_version=1.0.3+1.21.10 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.138.4+1.21.10 \ 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..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", + "minecraft": "1.21.10", "java": ">=21", - "fabric-api": "*" + "fabric-api": ">=0.138.4" } } \ No newline at end of file