@@ -23,7 +23,7 @@ public class PolyTechMain : PolyTechMod
23
23
public new const string
24
24
PluginGuid = "polytech.polytechframework" ,
25
25
PluginName = "PolyTech Framework" ,
26
- PluginVersion = "0.8.2 " ;
26
+ PluginVersion = "0.9.0 " ;
27
27
private static BindingList < PolyTechMod >
28
28
noncheatMods = new BindingList < PolyTechMod > { } ,
29
29
cheatMods = new BindingList < PolyTechMod > { } ;
@@ -104,7 +104,7 @@ public void Awake()
104
104
enabledCheatTweaks = 0 + ( forceCheat . Value ? 1 : 0 ) + ( sandboxEverywhere . Value ? 1 : 0 ) ;
105
105
106
106
this . modCheated = false ;
107
- this . repositoryUrl = "https://5124.mywire.org:5002/MoonlitJolteon /PolyTechFramework/" ;
107
+ this . repositoryUrl = "https://github.com/PolyTech-Modding /PolyTechFramework/" ;
108
108
109
109
Harmony . CreateAndPatchAll ( typeof ( PolyTechMain ) ) ;
110
110
@@ -260,7 +260,7 @@ public static void checkForModUpdate(PolyTechMod plugin)
260
260
client . Headers . Add ( "User-Agent" , "Nothing" ) ;
261
261
262
262
// get latest release version
263
- string repoReleaseUri = "https://5124.mywire.org:5002/api/v1 /repos" + new Uri ( plugin . repositoryUrl ) . AbsolutePath + "releases" ;
263
+ string repoReleaseUri = "https://api.github.com /repos" + new Uri ( plugin . repositoryUrl ) . AbsolutePath + "releases" ;
264
264
string content ;
265
265
try
266
266
{
@@ -339,19 +339,19 @@ public void onEnableDisable(object sender, EventArgs e)
339
339
}
340
340
341
341
[ HarmonyPatch ( typeof ( GameManager ) , "StartManual" ) ]
342
+ [ HarmonyPostfix ]
343
+ private static void GameStartPostfix ( ) {
344
+ patchGameStart . game_started = true ;
345
+ if ( patchGameStart . modUpdates == null ) return ;
346
+ foreach ( ModUpdate modUpdate in patchGameStart . modUpdates )
347
+ {
348
+ modUpdatePopup ( modUpdate ) ;
349
+ }
350
+ }
342
351
private class patchGameStart
343
352
{
344
353
public static List < ModUpdate > modUpdates = new List < ModUpdate > ( ) ;
345
354
public static bool game_started = false ;
346
- static void Postfix ( )
347
- {
348
- game_started = true ;
349
- if ( modUpdates == null ) return ;
350
- foreach ( ModUpdate modUpdate in modUpdates )
351
- {
352
- modUpdatePopup ( modUpdate ) ;
353
- }
354
- }
355
355
356
356
357
357
}
0 commit comments