Skip to content

Commit

Permalink
update Minestom
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Feb 10, 2024
1 parent 27a58dd commit 418d8f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected void setButton(int slot, @Nullable Item item) {

@Override
public void open() {
Player player = MinecraftServer.getConnectionManager().getPlayer(uuid);
Player player = MinecraftServer.getConnectionManager().getOnlinePlayerByUuid(uuid);
if (player != null) {
player.openInventory(inventory);
}
Expand Down
12 changes: 9 additions & 3 deletions hscore-minestom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@
<dependencies>
<!--suppress VulnerableLibrariesLocal -->
<dependency>
<groupId>dev.hollowcube</groupId>
<artifactId>minestom-ce</artifactId>
<version>1554487748</version>
<groupId>net.minestom</groupId>
<artifactId>minestom-snapshots</artifactId>
<version>82725b5e32</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-depchain</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>

0 comments on commit 418d8f3

Please sign in to comment.