Skip to content

Commit

Permalink
0.6.1.6 autopause fix messed up apparently.
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Jun 26, 2018
1 parent cbf37eb commit 02d4dc5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion RecipeBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ private void ItemChecklistItemFound(int type)
public override void UpdateUI(GameTime gameTime)
{
// By doing these triggers here, we can use them even if autopaused.
Main.LocalPlayer.GetModPlayer<RecipeBrowserPlayer>().ProcessTriggersButAlways(null);
if(Main.autoPause)
Main.LocalPlayer.GetModPlayer<RecipeBrowserPlayer>().ProcessTriggers(null);
recipeBrowserTool?.UIUpdate(gameTime);
}

Expand Down
4 changes: 3 additions & 1 deletion RecipeBrowserPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ public void SendFavoritedRecipes(int toWho, int fromWho, bool syncPlayer = false
}

// These triggers should work in autopause and aren't related to Player actions, so we can use UpdateUI to call them.
public void ProcessTriggersButAlways(TriggersSet triggersSet)
//public void ProcessTriggersButAlways(TriggersSet triggersSet)
// 0.6.1.6: hm, seemed to have backfired. Investigate why 0.6.1.5 approach would miss keypresses.
public override void ProcessTriggers(TriggersSet triggersSet)
{
//if (!RecipeBrowser.instance.CheatSheetLoaded)
{
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
author = jopojelly
version = 0.6.1.5
version = 0.6.1.6
displayName = Recipe Browser
homepage = https://forums.terraria.org/index.php?threads/recipe-browser.62462/
buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, unused\*, .git\*,
Expand Down

0 comments on commit 02d4dc5

Please sign in to comment.