Changeset 369 for binary-improvements/MapRendering/API.cs
- Timestamp:
- Nov 9, 2021, 6:28:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/API.cs
r367 r369 6 6 private Web webInstance; 7 7 8 public void InitMod ( ) {8 public void InitMod (Mod _modInstance) { 9 9 ModEvents.GameStartDone.RegisterHandler (GameStartDone); 10 10 ModEvents.GameShutdown.RegisterHandler (GameShutdown); … … 14 14 private void GameStartDone () { 15 15 // ReSharper disable once ObjectCreationAsStatement 16 if (!ConnectionManager.Instance.IsServer) { 17 return; 18 } 19 16 20 webInstance = new Web (); 17 21 LogBuffer.Init (); … … 23 27 24 28 private void GameShutdown () { 25 webInstance .Shutdown ();29 webInstance?.Shutdown (); 26 30 MapRendering.MapRendering.Shutdown (); 27 31 }
Note:
See TracChangeset
for help on using the changeset viewer.