Fix DeliveryManager completion bug

If DeliveryManager found a single matching ingreedient on the plate it would mark the order complete. this is no longer the case.
This commit is contained in:
BuyMyMojo 2023-03-03 05:21:31 +11:00
parent 1aa97baff4
commit 89e482d387
3 changed files with 44 additions and 44 deletions

View file

@ -79,17 +79,17 @@ public class DeliveryManager : MonoBehaviour
plateContentsMatchesRecipe = false;
}
if (plateContentsMatchesRecipe)
{
// Player delivered correct recipe
}
if (plateContentsMatchesRecipe)
{
// Player delivered correct recipe
waitingRecipeSOList.RemoveAt(i);
waitingRecipeSOList.RemoveAt(i);
OnRecipeCompleted?.Invoke(this, EventArgs.Empty);
OnRecipeSuccess?.Invoke(this, EventArgs.Empty);
OnRecipeCompleted?.Invoke(this, EventArgs.Empty);
OnRecipeSuccess?.Invoke(this, EventArgs.Empty);
return;
}
return;
}
}
}