Skip to content

Commit

Permalink
remove unnecessary threading check
Browse files Browse the repository at this point in the history
(cherry picked from commit ed594d2)
  • Loading branch information
absoluteAquarian committed Aug 3, 2023
1 parent 022867b commit 85768e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CraftingGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,8 @@ private static void RefreshStorageItems()

index++;
}

checkedHighestRecipe = true;
}
}

Expand Down Expand Up @@ -1735,9 +1737,6 @@ private static Dictionary<int, int> GetItemCountsWithBlockedItemsRemoved(bool cl
private static CraftingSimulation simulatedCraftForCurrentRecipe;

public static CraftingSimulation GetCraftingSimulationForCurrentRecipe() {
if (currentlyThreading || StorageGUI.CurrentlyRefreshing)
return new CraftingSimulation(); // Delay logic until threading stops

if (object.ReferenceEquals(recentRecipeSimulation, selectedRecipe) && simulatedCraftForCurrentRecipe is not null)
return simulatedCraftForCurrentRecipe;

Expand Down

0 comments on commit 85768e1

Please sign in to comment.