First Machine Age's Mods (Combined repo.)
修订版 | 5dd226273f611f3c4f1ac41e14c144450edf73bf (tree) |
---|---|
时间 | 2022-03-30 07:41:17 |
作者 | melchior <melchior@user...> |
Commiter | melchior |
AMR , fix for missing event
@@ -127,8 +127,9 @@ namespace AnvilMetalRecovery | ||
127 | 127 | PrepareDownlinkChannel( ); |
128 | 128 | ServerAPI.Event.PlayerJoin += SendClientConfigMessage; |
129 | 129 | ServerAPI.Event.ServerRunPhase(EnumServerRunPhase.Shutdown, PersistServersideConfig); |
130 | - ServerCore.Event.ServerRunPhase(EnumServerRunPhase.GameReady, MaterialDataGathering); | |
131 | - ServerCore.Event.ServerRunPhase(EnumServerRunPhase.WorldReady, CacheRecoveryDateTable); | |
130 | + ServerAPI.Event.ServerRunPhase(EnumServerRunPhase.GameReady, MaterialDataGathering); | |
131 | + //ServerAPI.Event.ServerRunPhase(EnumServerRunPhase.WorldReady, CacheRecoveryDataTable);//This does not appear to work?! | |
132 | + ServerAPI.Event.ServerRunPhase(EnumServerRunPhase.RunGame, CacheRecoveryDataTable); | |
132 | 133 | |
133 | 134 | SetupGeneralObservers( ); |
134 | 135 |
@@ -236,10 +237,13 @@ namespace AnvilMetalRecovery | ||
236 | 237 | } |
237 | 238 | } |
238 | 239 | |
239 | - private void CacheRecoveryDateTable( ) | |
240 | + private void CacheRecoveryDataTable( ) | |
240 | 241 | { |
241 | 242 | this.AMR_DataReady?.Invoke(); |
242 | 243 | // Cache list too |
244 | + #if DEBUG | |
245 | + Mod.Logger.VerboseDebug("Adding Recovery entries table to Cache..."); | |
246 | + #endif | |
243 | 247 | ServerAPI.ObjectCache.Add(itemFilterListCacheKey, itemToVoxelLookup); |
244 | 248 | } |
245 | 249 | } |