diff --git a/Assets/_DDD/_Scripts/Restaurant/State/FlowStates/RestaurantManagementState.cs b/Assets/_DDD/_Scripts/Restaurant/State/FlowStates/RestaurantManagementState.cs index e6164cd50..d74454884 100644 --- a/Assets/_DDD/_Scripts/Restaurant/State/FlowStates/RestaurantManagementState.cs +++ b/Assets/_DDD/_Scripts/Restaurant/State/FlowStates/RestaurantManagementState.cs @@ -272,15 +272,15 @@ public bool HasAddedCookByCookwareKey(string cookwareKey) public bool TryCookingById(string recipeId) { - if (_todayFoodRecipeIds.TryGetValue(recipeId, out var foodCount) && foodCount > 0) + if (_todayFoodRecipeAndAmounts.TryGetValue(recipeId, out var foodCount) && foodCount > 0) { - _todayFoodRecipeIds[recipeId] -= 1; + _todayFoodRecipeAndAmounts[recipeId] -= 1; return true; } - if (_todayDrinkRecipeIds.TryGetValue(recipeId, out var drinkCount) && drinkCount > 0) + if (_todayDrinkRecipeAndAmounts.TryGetValue(recipeId, out var drinkCount) && drinkCount > 0) { - _todayDrinkRecipeIds[recipeId] -= 1; + _todayDrinkRecipeAndAmounts[recipeId] -= 1; return true; }