Changeset 425 for binary-improvements2/MapRendering/src
- Timestamp:
- Apr 10, 2023, 8:23:15 PM (19 months ago)
- Location:
- binary-improvements2/MapRendering/src
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/MapRendering/src/MapRenderer.cs
r423 r425 25 25 private float renderTimeout = float.MaxValue; 26 26 private bool shutdown; 27 28 29 public static bool Enabled => ConnectionManager.Instance.IsServer && GamePrefs.GetBool (EnumUtils.Parse<EnumGamePrefs> (nameof (EnumGamePrefs.EnableMapRendering))); 27 30 28 31 private MapRenderer () { -
binary-improvements2/MapRendering/src/ModApi.cs
r423 r425 10 10 11 11 Web.ServerInitialized += _web => { 12 if (! GamePrefs.GetBool (EnumUtils.Parse<EnumGamePrefs> (nameof (EnumGamePrefs.EnableMapRendering)))) {12 if (!MapRenderer.Enabled) { 13 13 return; 14 14 } … … 24 24 25 25 private void GameStartDone () { 26 if (!ConnectionManager.Instance.IsServer) { 27 return; 28 } 29 30 if (!GamePrefs.GetBool (EnumUtils.Parse<EnumGamePrefs> (nameof (EnumGamePrefs.EnableMapRendering)))) { 26 if (!MapRenderer.Enabled) { 31 27 return; 32 28 }
Note:
See TracChangeset
for help on using the changeset viewer.