Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
Also replaces the use of Instance#getUniqueId with Instance#getUuid on minestom (upcoming breaking change)
  • Loading branch information
derklaro committed Jan 29, 2025
1 parent 80c3617 commit 930a8cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
# plugins
spotless = "7.0.2"
nexusPublish = "2.0.0"
checkstyleTools = "10.21.1"
checkstyleTools = "10.21.2"

# general
gson = "2.11.0"
geantyref = "1.3.16"
annotations = "26.0.1"
annotations = "26.0.2"
netty = "4.1.117.Final"

# platform api versions
sponge = "10.0.0"
minestom = "0d47d97417"
minestom = "32735340d7"
paper = "1.21.4-R0.1-SNAPSHOT"

# platform extensions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private static final class UuidBasedInstanceAccessor implements PlatformWorldAcc

@Override
public @NotNull String extractWorldIdentifier(@NotNull Instance world) {
return world.getUniqueId().toString();
return world.getUuid().toString();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public static double distance(@NotNull Npc<?, ?, ?, ?> npc, @NotNull Pos pos) {
}

public static @NotNull Position positionFromMinestom(@NotNull Pos pos, @NotNull Instance world) {
return Position.position(pos.x(), pos.y(), pos.z(), pos.yaw(), pos.pitch(), world.getUniqueId().toString());
return Position.position(pos.x(), pos.y(), pos.z(), pos.yaw(), pos.pitch(), world.getUuid().toString());
}
}

0 comments on commit 930a8cc

Please sign in to comment.