Fix velocity sameWorldAs

This commit is contained in:
Draycia committed 2023-08-10 21:16:39 -07:00
1 parent cdb9d618f9
commit 88f020f82d
1 file changed
+4 -2
@@ -80,8 +80,10 @@ public final class CarbonPlayerVelocity extends WrappedCarbonPlayer implements F
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