From e7ebcbccf6e1eda6ecd26054a3bfdf7c4848056f Mon Sep 17 00:00:00 2001 From: Glucy-2 Date: Thu, 27 Jul 2023 04:30:17 +0800 Subject: [PATCH] Upgrade to Minecraft 1.20(.1) --- gradle.properties | 18 +++++++++--------- .../anip24/playertracker/TrackerClient.java | 4 ++-- .../anip24/playertracker/TrackerServer.java | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/gradle.properties b/gradle.properties index c7a2943..b60e880 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,20 +3,20 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/develop - minecraft_version=1.19 - # 1.17.1 - yarn_mappings= 1.19+build.4 + minecraft_version=1.20 + # 1.17.1 + yarn_mappings=1.20+build.1 # 1.17.1+build.65 - loader_version=0.14.8 + loader_version=0.14.21 # Mod Properties - mod_version = 1.3.2 + mod_version = 1.4.0 maven_group = com.anip24.playerTracker archives_base_name = player-tracker # Dependencies - fabric_version=0.57.0+1.19 + fabric_version=0.83.0+1.20 # 0.46.1+1.17 - modmenu_version=4.0.0 - cloth_config_version=7.0.72 - # modmenu 4.0.0 for 1.19, 3.2.3 for 1.18.1, 3.0.1 for 1.18-1.18.2, 2.0.15 for 1.17-1.17.1, \ No newline at end of file + modmenu_version=7.0.0 + cloth_config_version=11.0.99 + # modmenu 7.0.0 for 1.20, 4.0.0 for 1.19, 3.2.3 for 1.18.1, 3.0.1 for 1.18-1.18.2, 2.0.15 for 1.17-1.17.1, \ No newline at end of file diff --git a/src/main/java/com/anip24/playertracker/TrackerClient.java b/src/main/java/com/anip24/playertracker/TrackerClient.java index e3eec69..0dc498f 100644 --- a/src/main/java/com/anip24/playertracker/TrackerClient.java +++ b/src/main/java/com/anip24/playertracker/TrackerClient.java @@ -18,7 +18,7 @@ import net.minecraft.server.MinecraftServer; import net.minecraft.server.dedicated.MinecraftDedicatedServer; import net.minecraft.server.integrated.IntegratedServer; -import net.minecraft.util.registry.RegistryKey; +import net.minecraft.registry.RegistryKey; import net.minecraft.world.World; import java.io.File; @@ -110,7 +110,7 @@ public static void CreateFile() { public static void LogPositions() { for (PlayerEntity player : trackedPlayers) { - RegistryKey world = player.world.getRegistryKey(); + RegistryKey world = player.getWorld().getRegistryKey(); File targetFile; if (world == World.NETHER) { diff --git a/src/main/java/com/anip24/playertracker/TrackerServer.java b/src/main/java/com/anip24/playertracker/TrackerServer.java index 2c1053c..46ba13c 100644 --- a/src/main/java/com/anip24/playertracker/TrackerServer.java +++ b/src/main/java/com/anip24/playertracker/TrackerServer.java @@ -8,7 +8,7 @@ import net.fabricmc.api.ModInitializer; import net.fabricmc.loader.api.FabricLoader; import net.minecraft.entity.player.PlayerEntity; -import net.minecraft.util.registry.RegistryKey; +import net.minecraft.registry.RegistryKey; import net.minecraft.world.World; import java.io.File; @@ -67,7 +67,7 @@ public static void CreateFile() { } public static void LogPosition(PlayerEntity player) { - RegistryKey world = player.world.getRegistryKey(); + RegistryKey world = player.getWorld().getRegistryKey(); File targetFile; if (world == World.NETHER) {