2323
2424namespace GLMod
2525{
26- [ BepInPlugin ( Id , "GLMod" , "5.1.0 " ) ]
26+ [ BepInPlugin ( Id , "GLMod" , "5.1.1 " ) ]
2727 [ BepInProcess ( "Among Us.exe" ) ]
2828 public class GLMod : BasePlugin
2929 {
@@ -70,12 +70,7 @@ public async override void Load()
7070 stepConf = Config . Bind ( "Validation" , "steps" , "" ) ;
7171 stepRpc = Config . Bind ( "Validation" , "RPC" , "" ) ;
7272 configPath = Path . GetDirectoryName ( Config . ConfigFilePath ) ;
73-
74- if ( ! await verifyGLMod ( ) )
75- {
76- return ;
77- }
78-
73+
7974 Random random = new Random ( ) ;
8075 string newSupportId = new string ( Enumerable . Repeat ( supportIdChars , 10 )
8176 . Select ( s => s [ random . Next ( s . Length ) ] ) . ToArray ( ) ) ;
@@ -902,7 +897,7 @@ private static string CalculateFileSHA512(string filePath)
902897 }
903898 }
904899
905- public async Task < bool > verifyDll ( string checksumId , string dllPath )
900+ public static async Task < bool > verifyDll ( string checksumId , string dllPath )
906901 {
907902 string localChecksum = GLMod . CalculateFileSHA512 ( dllPath ) ;
908903 string remoteChecksum = await GLMod . getChecksum ( checksumId ) ;
@@ -917,7 +912,7 @@ public async Task<bool> verifyDll(string checksumId, string dllPath)
917912 return false ;
918913 }
919914
920- private async Task < bool > verifyGLMod ( )
915+ private static async Task < bool > verifyGLMod ( )
921916 {
922917 var pluginAttribute = typeof ( GLMod ) . GetCustomAttribute < BepInPlugin > ( ) ;
923918 string version = pluginAttribute ? . Version . ToString ( ) ;
0 commit comments