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:
parent
1aa97baff4
commit
89e482d387
3 changed files with 44 additions and 44 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue