|
|
@@ -53,7 +53,7 @@ namespace RecipeMenuCore.Patches
|
|
|
if (page.GetRecipePageEntries().Length > i)
|
|
|
{
|
|
|
int itemID = page.GetRecipePageEntries()[i].ItemIdBase;
|
|
|
- if (__instance.RecipeCraftedAlready(itemID, 0))
|
|
|
+ if (__instance.RecipeCraftedAlready(itemID, page.GetRecipePageEntries()[i].MinAmount))
|
|
|
___recipeLock[i].SetActive(false);
|
|
|
else
|
|
|
___recipeLock[i].SetActive(true);
|
|
|
@@ -76,7 +76,7 @@ namespace RecipeMenuCore.Patches
|
|
|
if (page.GetRecipePageEntries().Length > i)
|
|
|
{
|
|
|
int itemID = page.GetRecipePageEntries()[i].ItemIdBase;
|
|
|
- if (__instance.RecipeCraftedAlready(itemID, 0))
|
|
|
+ if (__instance.RecipeCraftedAlready(itemID, page.GetRecipePageEntries()[i].MinAmount))
|
|
|
___recipeLock[i].SetActive(false);
|
|
|
else
|
|
|
___recipeLock[i].SetActive(true);
|
|
|
@@ -104,7 +104,7 @@ namespace RecipeMenuCore.Patches
|
|
|
if (page.GetRecipePageEntries().Length > i / 3)
|
|
|
{
|
|
|
int itemID = page.GetRecipePageEntries()[i / 3].ItemIdExtension[i % 3];
|
|
|
- if (__instance.RecipeCraftedAlready(itemID, 0))
|
|
|
+ if (__instance.RecipeCraftedAlready(itemID, page.GetRecipePageEntries()[i].MinAmount))
|
|
|
{
|
|
|
___ultLocks[i].SetActive(false);
|
|
|
hoverElements.transform.GetChild(i).gameObject.SetActive(true);
|