@@ -144,7 +144,7 @@ public void SendRpc(TransportRpc rpc)
144144 {
145145 var rpcQueue = SystemAPI . GetSingleton < RpcCollection > ( ) . GetRpcQueue < TransportRpc , TransportRpc > ( ) ;
146146 var ghostInstance = GetComponentLookup < GhostInstance > ( ) ;
147- foreach ( var rpcDataStreamBuffer in SystemAPI . Query < DynamicBuffer < OutgoingRpcDataStreamBuffer > > ( ) )
147+ foreach ( var rpcDataStreamBuffer in SystemAPI . Query < DynamicBuffer < OutgoingOutOfBandRpcDataStreamBuffer > > ( ) )
148148 {
149149 rpcQueue . Schedule ( rpcDataStreamBuffer , ghostInstance , rpc ) ;
150150 }
@@ -273,7 +273,7 @@ private void OnClientConnectedToServer(Connection connection, NetCodeConnectionE
273273 } ;
274274 m_ServerClientId = connection . NetworkId . Value ;
275275 InvokeOnTransportEvent ( NetworkEvent . Connect , ( ulong ) connection . NetworkId . Value , default , m_RealTimeProvider . RealTimeSinceStartup ) ;
276- var updateSystem = NetCode . Netcode . GetWorld ( false ) . GetExistingSystemManaged < UnifiedNetcodeUpdateSystem > ( ) ;
276+ var updateSystem = m_NetworkManager . NetcodeWorld . GetExistingSystemManaged < UnifiedNetcodeUpdateSystem > ( ) ;
277277 updateSystem . EntityManager . AddBuffer < TransportRpcData > ( connection . ConnectionEntity ) ;
278278 }
279279
@@ -286,7 +286,7 @@ private void OnServerNewClientConnection(Connection connection, NetCodeConnectio
286286 Connection = connection
287287 } ; ;
288288 InvokeOnTransportEvent ( NetworkEvent . Connect , ( ulong ) connection . NetworkId . Value , default , m_RealTimeProvider . RealTimeSinceStartup ) ;
289- var updateSystem = NetCode . Netcode . GetWorld ( false ) . GetExistingSystemManaged < UnifiedNetcodeUpdateSystem > ( ) ;
289+ var updateSystem = m_NetworkManager . NetcodeWorld . GetExistingSystemManaged < UnifiedNetcodeUpdateSystem > ( ) ;
290290 updateSystem . EntityManager . AddBuffer < TransportRpcData > ( connection . ConnectionEntity ) ;
291291 }
292292
0 commit comments