mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkTransformBase: remove unnecessary connectionToServer check
This commit is contained in:
parent
98b786514c
commit
b3eb092878
@ -325,7 +325,7 @@ void Update()
|
||||
{
|
||||
// send to server if we have local authority (and aren't the server)
|
||||
// -> only if connectionToServer has been initialized yet too
|
||||
if (!isServer && hasAuthority && connectionToServer != null)
|
||||
if (!isServer && hasAuthority)
|
||||
{
|
||||
// check only each 'syncInterval'
|
||||
if (Time.time - lastClientSendTime >= syncInterval)
|
||||
|
Loading…
Reference in New Issue
Block a user