Skip to content

Commit 9c4ca48

Browse files
authored
Merge pull request #11 from GalvinPython/fix/1.21.9-player-updates
2 parents 02ba669 + 4b20d92 commit 9c4ca48

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ Use the `/findplayer` command and enter the player's name. There is also a dropd
1313
![Usage](https://raw.githubusercontent.com/GalvinPython/minecraft-playerfinder/main/.github/assets/javaw_QXmxvWN79i.png)
1414

1515
# Compatible Versions
16-
| Mod Version | Game Version(s) | Mod Version Title |
17-
|-------------|-----------------|-------------------|
18-
| 1.0.1 | 1.21 - 1.21.1 | 1.0.1+1.21 |
19-
| 1.0.0 | 1.21 - 1.21.1 | 1.0.0+1.21 |
16+
[![Supported versions](https://modrinth-shields.imgalvin.me/badge/playerfinder)](https://modrinth.com/mod/playerfinder)
17+
18+
AutoTorcher is available for Minecraft versions 1.20 and above!
19+
20+
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.
21+
22+
Please also keep your loader and Fabric API up to date to ensure the best compatibility!
2023

2124
# Important Note
2225
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
2629
PS: *You cannot use this mod on servers that don't use this mod. The commands are created server-side*
2730

2831
# Changelog
32+
## 1.0.2 (1.21.9)
33+
* For 1.21.9 compatibility
34+
* Updated dependencies (this is really important!)
35+
2936
## 1.0.1
3037
* Added colours to the co-ordinates depending on the dimension
3138
* Updated dimensions to remove "the" in the name

gradle.properties

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
# Done to increase the memory available to gradle.
1+
# Done to increase the memory available to Gradle.
22
org.gradle.jvmargs=-Xmx1G
33
org.gradle.parallel=true
44

55
# Fabric Properties
66
# check these on https://fabricmc.net/develop
7-
minecraft_version=1.21
8-
yarn_mappings=1.21+build.9
9-
loader_version=0.16.0
7+
minecraft_version=1.21.9
8+
yarn_mappings=1.21.9+build.1
9+
loader_version=0.18.4
1010
loom_version=1.14-SNAPSHOT
1111

12-
1312
# Mod Properties
14-
mod_version=1.0.1+1.21
13+
mod_version=1.0.2+1.21.9
1514
maven_group=me.imgalvin.playerfinder
1615
archives_base_name=player-finder
1716

1817
# Dependencies
19-
fabric_version=0.102.0+1.21
18+
fabric_version=0.134.1+1.21.9

src/main/java/me/imgalvin/playerfinder/PlayerFinder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public void onInitialize() {
3030

3131
BlockPos targetBlockPos = targetPlayer.getBlockPos();
3232
BlockPos sourceBlockPos = sourcePlayer.getBlockPos();
33-
RegistryKey<World> playerDimension = targetPlayer.getWorld().getRegistryKey();
34-
RegistryKey<World> sourceDimension = sourcePlayer.getWorld().getRegistryKey();
33+
RegistryKey<World> playerDimension = targetPlayer.getEntityWorld().getRegistryKey();
34+
RegistryKey<World> sourceDimension = sourcePlayer.getEntityWorld().getRegistryKey();
3535

3636
boolean isSameDimension = sourceDimension == playerDimension;
3737

src/main/resources/fabric.mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
},
2222
"depends": {
2323
"fabricloader": ">=0.16.0",
24-
"minecraft": "~1.21",
24+
"minecraft": "1.21.9",
2525
"java": ">=21",
26-
"fabric-api": "*"
26+
"fabric-api": ">=0.134.1"
2727
}
2828
}

0 commit comments

Comments
 (0)