• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

First Machine Age's Mods (Combined repo.)


Commit MetaInfo

修订版5dd226273f611f3c4f1ac41e14c144450edf73bf (tree)
时间2022-03-30 07:41:17
作者melchior <melchior@user...>
Commitermelchior

Log Message

AMR , fix for missing event

更改概述

差异

--- a/AnvilMetalRecovery/MetalRecoverySystem.cs
+++ b/AnvilMetalRecovery/MetalRecoverySystem.cs
@@ -127,8 +127,9 @@ namespace AnvilMetalRecovery
127127 PrepareDownlinkChannel( );
128128 ServerAPI.Event.PlayerJoin += SendClientConfigMessage;
129129 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);
132133
133134 SetupGeneralObservers( );
134135
@@ -236,10 +237,13 @@ namespace AnvilMetalRecovery
236237 }
237238 }
238239
239- private void CacheRecoveryDateTable( )
240+ private void CacheRecoveryDataTable( )
240241 {
241242 this.AMR_DataReady?.Invoke();
242243 // Cache list too
244+ #if DEBUG
245+ Mod.Logger.VerboseDebug("Adding Recovery entries table to Cache...");
246+ #endif
243247 ServerAPI.ObjectCache.Add(itemFilterListCacheKey, itemToVoxelLookup);
244248 }
245249 }