@@ -23,7 +23,7 @@ public class PolyTechMain : PolyTechMod
2323 public new const string
2424 PluginGuid = "polytech.polytechframework" ,
2525 PluginName = "PolyTech Framework" ,
26- PluginVersion = "0.8.2 " ;
26+ PluginVersion = "0.9.0 " ;
2727 private static BindingList < PolyTechMod >
2828 noncheatMods = new BindingList < PolyTechMod > { } ,
2929 cheatMods = new BindingList < PolyTechMod > { } ;
@@ -104,7 +104,7 @@ public void Awake()
104104 enabledCheatTweaks = 0 + ( forceCheat . Value ? 1 : 0 ) + ( sandboxEverywhere . Value ? 1 : 0 ) ;
105105
106106 this . modCheated = false ;
107- this . repositoryUrl = "https://5124.mywire.org:5002/MoonlitJolteon /PolyTechFramework/" ;
107+ this . repositoryUrl = "https://github.com/PolyTech-Modding /PolyTechFramework/" ;
108108
109109 Harmony . CreateAndPatchAll ( typeof ( PolyTechMain ) ) ;
110110
@@ -260,7 +260,7 @@ public static void checkForModUpdate(PolyTechMod plugin)
260260 client . Headers . Add ( "User-Agent" , "Nothing" ) ;
261261
262262 // 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" ;
264264 string content ;
265265 try
266266 {
@@ -339,19 +339,19 @@ public void onEnableDisable(object sender, EventArgs e)
339339 }
340340
341341 [ 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+ }
342351 private class patchGameStart
343352 {
344353 public static List < ModUpdate > modUpdates = new List < ModUpdate > ( ) ;
345354 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- }
355355
356356
357357 }
0 commit comments