File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change
1
+ using HarmonyLib ;
2
+ using Reactor . Utilities ;
3
+
4
+ namespace Reactor . Patches . Miscellaneous ;
5
+
6
+ [ HarmonyPatch ]
7
+ internal static class LateLoadPatch
8
+ {
9
+ [ HarmonyPatch ( typeof ( AmongUsClient ) , nameof ( AmongUsClient . Awake ) ) ]
10
+ [ HarmonyPostfix ]
11
+ public static void Awake_Postfix ( )
12
+ {
13
+ PluginSingleton < ReactorPlugin > . Instance . LateLoad ( ) ;
14
+ }
15
+ }
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ public override void Load()
69
69
ReactorVersionShower . Initialize ( ) ;
70
70
FreeNamePatch . Initialize ( ) ;
71
71
DefaultBundle . Load ( ) ;
72
- InnerNetObjectAttribute . Initialize ( ) ;
73
72
74
73
SceneManager . add_sceneLoaded ( ( Action < Scene , LoadSceneMode > ) ( ( scene , _ ) =>
75
74
{
@@ -80,6 +79,12 @@ public override void Load()
80
79
} ) ) ;
81
80
}
82
81
82
+ /// <inheritdoc />
83
+ public void LateLoad ( )
84
+ {
85
+ InnerNetObjectAttribute . Initialize ( ) ;
86
+ }
87
+
83
88
/// <inheritdoc />
84
89
public override bool Unload ( )
85
90
{
You can’t perform that action at this time.
0 commit comments