Skip to content

Commit

Permalink
v2.2.1.1 - Updated Rewards dependency version
Browse files Browse the repository at this point in the history
  • Loading branch information
hamstar0 committed Nov 9, 2019
1 parent 0cc5830 commit 74d7a97
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions LicensesMod_Load.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,26 @@ public void LoadGameMode() {
this.LoadLicensePacks();
} );

this.PostLoadGameMode();

if( LicensesMod.Config.DebugModeInfo ) {
LogHelpers.Alert( "Finished loading game mode" );
}
}


private void PostLoadGameMode() {
CustomLoadHooks.TriggerHook( LicensesMod.GameModeLoadValidator, LicensesMod.MyValidatorKey );

LoadHooks.AddWorldUnloadEachHook( () => {
CustomLoadHooks.ClearHook( LicensesMod.GameModeLoadValidator, LicensesMod.MyValidatorKey );
LoadHooks.AddWorldLoadOnceHook( () => {
CustomLoadHooks.TriggerHook( LicensesMod.GameModeLoadValidator, LicensesMod.MyValidatorKey ); // Whee!
CustomLoadHooks.TriggerHook( LicensesMod.GameModeLoadValidator, LicensesMod.MyValidatorKey ); // Whee!
} );
} );

if( LicensesMod.Config.DebugModeInfo ) {
LogHelpers.Alert( "Finished loading game mode" );
}
}

////

private void LoadNihilismFilters() {
if( LicensesMod.Config.OverrideNihilismDefaultFilters ) {
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
author = hamstar
version = 2.2.1.1
displayName = Licenses
modReferences = HamstarHelpers@5.3.3, Nihilism@3.1.0, Rewards@2.2.4
modReferences = HamstarHelpers@5.3.3, Nihilism@3.1.0, Rewards@2.2.4.1
buildIgnore = *.csproj, *.user, *.bat, obj\*, bin\*, .vs\*, .git\*
homepage = https://forums.terraria.org/index.php?threads/licenses-unlock-items-as-you-progress.69438/

0 comments on commit 74d7a97

Please sign in to comment.