OSDN Git Service

Events should attched after config data is loaded...
authormelchior <melchior@users.osdn.me>
Fri, 27 Nov 2020 22:23:34 +0000 (17:23 -0500)
committermelchior <melchior@users.osdn.me>
Fri, 27 Nov 2020 22:23:34 +0000 (17:23 -0500)
Automap/Subsystems/AutomapSystem.cs

index 1345f93..04db4c2 100644 (file)
@@ -70,8 +70,9 @@ namespace Automap
                        this.ClientAPI = clientAPI;
                        this.Logger = logger;
                        chunkSize = ClientAPI.World.BlockAccessor.ChunkSize;
                        this.ClientAPI = clientAPI;
                        this.Logger = logger;
                        chunkSize = ClientAPI.World.BlockAccessor.ChunkSize;
-                       ClientAPI.Event.LevelFinalize += EngageAutomap;
+
                        configuration = config;
                        configuration = config;
+                       ClientAPI.Event.LevelFinalize += EngageAutomap;
 
                        this.ChunkRenderer = InstantiateChosenRenderer(config.RendererName);
 
 
                        this.ChunkRenderer = InstantiateChosenRenderer(config.RendererName);