Skip to content

Commit

Permalink
Fix velocity sameWorldAs
Browse files Browse the repository at this point in the history
  • Loading branch information
Draycia committed Aug 11, 2023
1 parent cdb9d61 commit 88f020f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ public boolean sameWorldAs(final CarbonPlayer other) {
return false;
}

final var playerServer = player.get().getCurrentServer();
return playerServer.isPresent() && playerServer.equals(otherPlayer.get().getCurrentServer());
final var playerServer = player.get().getCurrentServer().get();
final var otherServer = otherPlayer.get().getCurrentServer().get();

return playerServer.getServer().equals(otherServer.getServer());
}

@Override
Expand Down

0 comments on commit 88f020f

Please sign in to comment.