Stopped the errors caused my the server client trying to save
This commit is contained in:
		
							parent
							
								
									c98bbd72ce
								
							
						
					
					
						commit
						8e4c603cad
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -17,7 +17,12 @@ namespace SRMultiplayer.Patches | ||||||
|         { |         { | ||||||
|             if (!Globals.IsMultiplayer) return; |             if (!Globals.IsMultiplayer) return; | ||||||
| 
 | 
 | ||||||
|  |             //only handle the client if the client is the one disconnecting | ||||||
|  |             if (!Globals.IsServer) | ||||||
|  |             { | ||||||
|                 NetworkClient.Instance.Disconnect(); |                 NetworkClient.Instance.Disconnect(); | ||||||
|  |             } | ||||||
|  |             //if server ahndle the shutdown | ||||||
|             NetworkServer.Instance.Disconnect(); |             NetworkServer.Instance.Disconnect(); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Twirlbug
						Twirlbug