mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
Made Load finilize EventWrappers correctly
This commit is contained in:
1 parent
bc6debb4c0
commit
e66252b6ae
1 file changed
+13
@@ -284,5 +284,18 @@ public static class MiraEventManager
|
||||
{
|
||||
EventWrappers.Add(eventType, []);
|
||||
}
|
||||
|
||||
foreach (var (concreteType, eventHandlers) in EventWrappersToLoad)
|
||||
{
|
||||
if (!TryGetTrackedEventType(concreteType, out var trackedEventTypes))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach (var eventType in trackedEventTypes)
|
||||
{
|
||||
EventWrappers[eventType].AddRange(eventHandlers);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user