Allow multiple module testing callbacks

This commit is contained in:
DrSmugleaf
2020-10-29 17:50:25 +01:00
parent 60bee860cb
commit 0321a74bb6
3 changed files with 18 additions and 9 deletions

View File

@@ -40,9 +40,9 @@ namespace Content.Server
ServerContentIoC.Register();
if (TestingCallbacks != null)
foreach (var callback in TestingCallbacks)
{
var cast = (ServerModuleTestingCallbacks) TestingCallbacks;
var cast = (ServerModuleTestingCallbacks) callback;
cast.ServerBeforeIoC?.Invoke();
}