Skip to content

Commit

Permalink
Merge pull request #3 from Glucy-2/main
Browse files Browse the repository at this point in the history
Upgrade to Minecraft 1.20(.1)
  • Loading branch information
AIP21 authored Jul 27, 2023
2 parents 20a6444 + e7ebcbc commit c549ff3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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,
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,
4 changes: 2 additions & 2 deletions src/main/java/com/anip24/playertracker/TrackerClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -110,7 +110,7 @@ public static void CreateFile() {

public static void LogPositions() {
for (PlayerEntity player : trackedPlayers) {
RegistryKey<World> world = player.world.getRegistryKey();
RegistryKey<World> world = player.getWorld().getRegistryKey();

File targetFile;
if (world == World.NETHER) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/anip24/playertracker/TrackerServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -67,7 +67,7 @@ public static void CreateFile() {
}

public static void LogPosition(PlayerEntity player) {
RegistryKey<World> world = player.world.getRegistryKey();
RegistryKey<World> world = player.getWorld().getRegistryKey();

File targetFile;
if (world == World.NETHER) {
Expand Down

0 comments on commit c549ff3

Please sign in to comment.